-
-
Save anonymous/0955414d62d050b22771308a47389ab3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def call(credentials) | |
header_info = get_oauth_token(credentials) | |
namespaces = {"ns0" => "https://www...", "ns1" => "https://www...",} | |
client = Savon.client(wsdl: File.read('../endpoints/wsdl/....wsdl'), | |
endpoint: 'https://...', | |
namespaces: namespaces, | |
soap_header: { | |
"Authorization" => header_info[:token], | |
"csn" => "...", | |
"timestamp" => header_info[:timestamp], | |
"signature" => header_info[:signature], | |
"SOAPAction" => "/...", | |
"content-type" => "application/xml" | |
}) | |
client.call(:match_account_contact, message: {"ns0:MatchAccountContactRequest" => { | |
"ns0:Request" => { | |
"ns1:..." => "..." | |
}, | |
"ns0:RequestContext" => { | |
"ns0:.." => "..." | |
}, | |
"ns0:Account" => { | |
"ns0:.." => "..." | |
}}) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment