[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

soap4r and capitalized wsdl:part names

Ian Neubert

3/24/2008 9:20:00 PM

Hello all,

I'm having a problem with writing a SOPA client with soap4r (1.5.8) and
a WSDL file that includes WSDL operations with parameter names that are
in all caps. When I try to access one of those SOAP operations it sets
all the parameters to xsi:nil=true in the XML sent to the SOAP endpoint.

Is this a bug or do I need to handle this situation differently? Note:
everything works great if I change the names of the wsdl:part elements
to lowercase letters.

Here is the example code:
driver.getResellerCostPrice("myname", "mypassword", "myrole", "en", 1)

Here is the XML sent to the SOAP endpoint:
..snip..
<SERVICE_USERNAME xsi:nil=\"true\"></SERVICE_USERNAME>
<SERVICE_PASSWORD xsi:nil=\"true\"></SERVICE_PASSWORD>
<SERVICE_ROLE xsi:nil=\"true\"></SERVICE_ROLE>
<SERVICE_LANGPREF xsi:nil=\"true\"></SERVICE_LANGPREF>
<SERVICE_PARENTID xsi:nil=\"true\"></SERVICE_PARENTID>
..snip..

And an example of the WSDL file:
<wsdl:message name="getResellerCostPriceRequest">
<wsdl:part name="SERVICE_USERNAME" type="xsd:string"/>
<wsdl:part name="SERVICE_PASSWORD" type="xsd:string"/>
<wsdl:part name="SERVICE_ROLE" type="xsd:string"/>
<wsdl:part name="SERVICE_LANGPREF" type="xsd:string"/>
<wsdl:part name="SERVICE_PARENTID" type="xsd:int"/>
</wsdl:message>

Thanks in advance for any help you may provide.

-Ian Neubert
--
Posted via http://www.ruby-....