-
-
Save anonymous/fa2eb24a6309e9d9d5a3bb557350a7e5 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 = {"xmlns:ns0" => "https://...", "xmlns:ns1 = />" => "http://...",} | |
client = Savon.client(wsdl: '../....wsdl', | |
endpoint: 'https://...', | |
# convert_request_keys_to: :camelcase, | |
namespaces: namespaces, | |
headers: { | |
"Authorization" => header_info[:token], | |
"csn" => "...", | |
"timestamp" => header_info[:timestamp], | |
"signature" => header_info[:signature], | |
"content-type" => "application/xml" | |
}) | |
client.call(:match_account_contact, message: { | |
"xmlns:ns0:..." => { | |
"xmlns:ns1 = :.../>" => "...", | |
"xmlns:ns1 = :.../>" => "...", | |
"xmlns:ns1 = :.../>" => "..." | |
}, | |
"xmlns:ns0:RequestContext" => { | |
"xmlns:ns0:..." => "...", | |
"xmlns:ns0:..." => "..." | |
"xmlns:ns0:..." => "...", | |
"xmlns:ns0:..." => "...", | |
"xmlns:ns0:..." => "...", | |
"xmlns:ns0:..." => "..." | |
}, | |
"xmlns:ns0:..." => { | |
"xmlns:ns0:..." => "...", | |
"xmlns:ns0:..." => "...", | |
"xmlns:ns0:..." => { | |
"xmlns:ns0:..." => "...", | |
"xmlns:ns0:..." => " ", | |
"xmlns:ns0:..." => "...", | |
"xmlns:ns0:..." => "...", | |
"xmlns:ns0:..." => " ", | |
"xmlns:ns0:..." => "...", | |
"xmlns:ns0:..." => "...", | |
"xmlns:ns0:..." => " ", | |
"xmlns:ns0:..." => "...", | |
"xmlns:ns0:..." => "..." | |
}, | |
"xmlns:ns0:..." => | |
}, | |
"xmlns:ns0:..." => { | |
"xmlns:ns0:..." => "...", | |
"xmlns:ns0:..." => "...", | |
"xmlns:ns0:..." => "..." | |
} | |
}) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment