Fellow Monks:

I am using SOAP::Lite as a client to access a SOAP server (AXIS on Apache) and had found it really simple until I got to a specific Complex Type. The WSDL fro the type is:
<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>
If I query a method in the web service that returns a HashMapBean it comes back as:
$VAR = bless( { 'keys' => bless( [ 'name', 'addr', 'phone' ], 'string' ), 'values' => bless( [ 'bubba', 'home', '555-1212' ], 'string') }, 'HashMapBean' )
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:
String value expected instead of string reference
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.

Has anyone else encountered this message or have any ideas how I can send this complex type throught to the soap server.

Of all the messages I have found (Googled), they all suggest changing the soap server's method params. but I do not have that access.

Any information would be helpful, thanks in advance.

Don
WHITEPAGES.COM | INC
Everything I've learned in life can be summed up in a small perl script!

In reply to Soap::Lite and Complex Types by BaldPenguin

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.