Re: [soaplite] SOM result method yields 0
- At 15:20:00 on 2003-10-10 bjbarleyjuice <bjbarleyjuice@...> wrote:
>Greetings,Not sure what you mean here.
>I apologise if wrong but I think I've been through the messages and
>don't find this. I get a response (array of arrays that contain refs)
>envelope that gives no hint of error but seems not to generate
>a 'good' SOM (i.e. $som->result returns 0).
$som->result() will return the value of the first element within the method
element. In your case that is the errorCode element which does indeed have a
value of 0.
>Looking for clues (and referring to flying dragon pg.333) I try toIf you want to create a SOM from some XML you need to do it like this:
>create a SOAP::SOM using the response envelope and get Perl
>error: "Can't use string ("<?xml version="1.0" encoding="UT") as an
>ARRAY ref while "strict refs" in use at c:\perl580
>\site\lib/SOAP/Lite.pm line 376, <XML> line 1".
my $som = SOAP::Deserializer->deserialize($xml);
You can then use the match(), valueof(), dataof() etc. methods to extract