Hello,
I need to make a soap call to a web service which requires the EncodingType in the Nonce.
So the correct soap message will have the Nonce element like this:
......
......
But in my Savon client, I don't know how to add that attribute in the Nonce element.
My code here:
......
client = Savon.client do
wsdl.namespace = "namespace"
wsse.credentials "username", "password"
wsse.digest = "true"
end
client.request :get_service do |soap|
soap.input = [
"GetService",
{ "xmlns" => "namespace" }
]
soap.body = {
"locale" => "en_US",
"serviceID" => '123'
}
end
......
and the Nonce in the generated SOAP message is like:
......
<wsse:Nonce>SomeHashValue</wsse:Nonce>
......
So my question is, how to add the attribute EncodingType to the Nonce element, without changing/removing the SomeHashValue in the Nonce element?
I did some google and couldn't find any answer or solution directly to my problem.
But I think I have a different case. I really hope I can solve this problem in Savon. Savon is very easy to use and if possible I don't want to use other web service "gem".
Thanks!