-
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
Savon 3 does not support soap operations without parameters. #477
Comments
thanks for reporting @matafc. you're right, i think there is no spec for an operation without arguments yet. |
happy to see you using version 3, but i feel like i have to warn you that you're using an unstable version. |
i'm trying to get savon v2.3.0 released and will come back to this after that. |
can you provide the wsdl of you service as a gist or pastie? |
Sure, I modified an example from the spyne website to show the behavior: |
thanks @matafc. pushed a fix for this to master. |
Hi,
Savon 3 does not currently support soap operations without parameters. Savon 2 did, and it seems it is because the message xml is built with some default margins/indents, which creates whitespace where it is not needed. An operation message with no paramters should look like this:
Whereas Savon 3 creates it like so:
The whitespace it parsed and the soap server throws an error. I am using spyne to make the soap server. SoapUI and suds also create a compatible message, although of the form:
Here is some sample output and my debug code:
savon2_test.rb:
savon3_test.rb:
I removed the indent and margin arguments from Builder::XmlMarkup.new() in lib/savon/message.rb:16 and lib/savon/envelope.rb:52 and ran it again.
Can this be fixed by using my changes, or perhaps by adding a flag to turn off the pretty formatting of the xml builder? It seems many of your tests expect the message to be in that format, so I can understand wanting to do the latter.
Thanks!
The text was updated successfully, but these errors were encountered: