-
Notifications
You must be signed in to change notification settings - Fork 616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable wsdl in Savon 2.0 #398
Comments
So I found that you can set the namespace identifier with
If the namespace identifier is blank there should be no preceding colon. This is breaking the request I just want to be able to send:
when not using a wsdl. Savon 2 forces you to have the preceding wsdl: |
I made a patch for this. Can be see in my pull request #400 |
could you please provide the wsdl for debugging, because you shouldn't need to change the namespace identifier. |
That's just it, there is no wsdl. This is for the Zimbra SOAP API which does not use a wsdl. |
I see a similar problem, but with namespace identifier being added to the message(s). The following is a valid request (skipping headers), namespace is <env:Body>
<tns:getZonesOfAccount>
<accountId>0123FOO</accountId>
<zoneType>all</zoneType>
</tns:getZonesOfAccount>
</env:Body> Whereas the following doesn't work, which is built and sent via savon <env:Body>
<tns:getZonesOfAccount>
<tns:accountId>0123FOO</tns:accountId>
<tns:zoneType>all</tns:zoneType>
</tns:getZonesOfAccount>
</env:Body> Gives error
savon code client = Savon.client do
wsdl "http://ultra-api.ultradns.com:8008/UltraDNS_WS?wsdl"
wsse_auth("USER", "PASS")
end
client.call(:get_zones_of_account, message: { account_id: '01023FOO', zone_type: 'all' } ) Not sure what is the correct behavior/approach is in this case, perhaps a |
just need to set |
Hi I have a small problem connected with the namespace identifier. When I don't set it I get:
When I set it to nil I get:
The ":" remain and it generates error. |
@camol which version are you using and can you provide code to reproduce the problem? |
What is the status for this? |
There was another issue with this problem but that was version 0.8. I'm using Savon 2 and I cannot figure out how to disable wsdl in my client.
The client is prepending wsdl: to my soap request literally
It should be
<AuthRequest/>
The text was updated successfully, but these errors were encountered: