BaldPenguin has asked for the wisdom of the Perl Monks concerning the following question:
If I query a method in the web service that returns a HashMapBean it comes back as:<complexType name="HashMapBean"> <sequence> <element name="values" nillable="true" type="impl:ArrayOf_xsd_stri +ng"/> <element name="keys" nillable="true" type="impl:ArrayOf_xsd_string +"/> </sequence> </complexType>
In another method, I need to pass in a HashMapBean, so I create the same structure and pass it in the the SOAP::Lite call and I get the error:$VAR = bless( { 'keys' => bless( [ 'name', 'addr', 'phone' ], 'string' ), 'values' => bless( [ 'bubba', 'home', '555-1212' ], 'string') }, 'HashMapBean' )
From browsing the code it appears that inserializing the data before sending it it bounces back that message when anything declared as a string type has a value that is a reference.String value expected instead of string reference
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Soap::Lite and Complex Types
by jhourcle (Prior) on Dec 23, 2005 at 15:11 UTC |