Abigail Headroom
2008-Oct-28 11:17 UTC
Actionwebservice: order of parameters in SOAP message
Hi,
I have a strange SOAP interopability issue with
actionwebservice/rails2.0 (server) and Axis2 (client)
Should the order of parameters in a SOAP request matter? I.e is...
<soapenv:Body>
<ns1:someMethod
xmlns:ns1="http://xmlns.tre.se/bss/AAAService">
<myComplex>
<theA>Foo</theA>
</myComplex>
<aBoolean>false</aBoolean>
</ns1:Update>
</soapenv:Body>
... as valid as:
<soapenv:Body>
<ns1:someMethod
xmlns:ns1="http://xmlns.tre.se/bss/AAAService">
<aBoolean>false</aBoolean>
<myComplex>
<theA>Foo</theA>
</myComplex>
</ns1:Update>
</soapenv:Body>
(In the first request snippet, the complex object is sent before the
boolean)
The API classfile contains:
api_method :someMethod, :expects => [ {:myComplex => MyComplex},
{:aBoolean => :boolean} ],
:returns => [ ResponseMsg ]
And the generated WSDL:
<xsd:complexType name="MyComplex">
<xsd:all>
<xsd:element name="theA" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
...
<message name="someMethod">
<part name="myComplex" type="typens:MyComplex"/>
<part name="aBoolean" type="xsd:boolean"/>
</message>
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Abigail Headroom
2008-Oct-28 11:44 UTC
Re: Actionwebservice: order of parameters in SOAP message
Minor typo above, the requests should of course be:
<soapenv:Body>
<ns1:someMethod
xmlns:ns1="http://xmlns.tre.se/bss/AAAService">
<myComplex>
<theA>Foo</theA>
</myComplex>
<aBoolean>false</aBoolean>
</ns1:someMethod>
</soapenv:Body>
and:
<soapenv:Body>
<ns1:someMethod
xmlns:ns1="http://xmlns.tre.se/bss/AAAService">
<aBoolean>false</aBoolean>
<myComplex>
<theA>Foo</theA>
</myComplex>
</ns1:someMethod>
</soapenv:Body>
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---