Passing array for maxOccurs="unbounded"

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have problem with passing parameters for web service.
Address for WSDL '
Im trying to call calculateRate in wsdl there are three elements with
maxOccurs="unbunded" when i'm trying to pass them as array i receive
error "org.xml.sax.SAXException: WSWS3084E: Error: SimpleDeserializer
encountered a child element, which is NOT expected, in something it
was trying to deserialize. Message being parsed: "
If i pass it as single value a receive normal response with error
codes because for each element 5 values are required.
I've tried PEAR::SOAP and nuSOAP changing style or transport is not
working either.

Re: Passing array for maxOccurs="unbounded"

psokulski wrote:

Quoted text here. Click to load it

I can't see anything wrong with the WSDL file. Post your code.

Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 115 days, 15:37.]

                             dict, thes & ency

Re: Passing array for maxOccurs="unbounded"

Quoted text here. Click to load it

Problem was that when weights was passed as array:

Array( "param1" => "XYZ" ,
"param2" => "123" ,
"weights" => Array("555" , "0" , "0" , "0" , "0"))

 in xml file send to server it was:


instead of


i worked it around instead of using SOAP_Client i use SOAP_Transport
and pass XML file as parameter.
But maybe there is some other way to do it

Quoted text here. Click to load it

Site Timeline