Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Creating a perl object from a xml response

by cristianekw (Novice)
on Jan 09, 2008 at 14:48 UTC ( [id://661365] : note . print w/replies, xml ) Need Help??


in reply to Re: Creating a perl object from a xml response
in thread Creating a perl object from a xml response

XML::Simple didn't get the multiRef information... :(

In complex xml response, we could have:
<ns1:list> <listReturn ... soapenc:arrayType="ns1:obj[2]"> <item href="#id0" /> <item href="#id1" /> </listReturn> </ns1:list> <multiRef id="id1" ...> <myId xsi:type="soapenc:long" xsi:nil="1" /> </multiRef>

Replies are listed 'Best First'.
Re^3: Creating a perl object from a xml response
by perrin (Chancellor) on Jan 09, 2008 at 15:37 UTC
    Well, I have no idea what that's supposed to do, but I'd suggest you either change your SOAP service to give a simpler response or pre-process the XML before handing it to XML::Simple. (Or post-process the resulting perl data.)
      What do you mean with pre-processing? Unfortunately, I canīt change the format that I receive from the server.
        I mean use an XML parser or XSLT to read it and spit out a new one.