|more useful options|
SOAP::Lite Not returning expected resultsby Ovid (Cardinal)
|on Oct 13, 2004 at 18:19 UTC||Need Help??|
Ovid has asked for the
wisdom of the Perl Monks concerning the following question:
I used the program stubmaker.pl that's distributed with SOAP::Lite to create an SOAP client and I can't seem to retrieve the data correctly. The relative snippet of code is this:
I used Data::Dumper on the SOAP::SOM ($som) object that was returned and buried deep in the data structure is the data that I need. $self->call is returning a SOAP::SOM object and I'm calling it in list context, so it's the $som->paramsall method which is failing. It returns the following data structure:
The XML returned by the SOAP call resembles the following (with many thousands of movies cut out and this is actually returned on one line.)
Do you see anything wrong with the above? Would providing a snippet of the (long) data structure in $som be useful? Should I just run my head through a meat grinder instead? Inquiring minds want to know.
I'm using SOAP::Lite version 0.60.
Cross-posted to the SOAP::Lite mailing list.
Update: I've developed a workaround by setting $self->outputxml(1) and using XML::Simple to parse the data. I'd rather not do that but at least it works.