in reply to Re^3: SOAP::Deserializer problem
in thread SOAP::Deserializer problem
Output is#!/usr/bin/perl use warnings; use strict; use SOAP::Lite; my $xml = <<'eof'; <?xml version="1.0"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/env +elope/"> <SOAP-ENV:Header/> <SOAP-ENV:Body> <command id="1"> <message id="2"> <time time="27.07.2007-10:37:49 +0200"/> </message> </command> </SOAP-ENV:Body> </SOAP-ENV:Envelope> eof my $som = SOAP::Deserializer->deserialize($xml); print "time = ", $som->dataof('//command/message/time')->attr->{time}, + "\n"; print "done.\n";
buttime = 27.07.2007-10:37:49 +0200 done.
as soon as the id attributes of command and message are identical. I wouldn't care if I could get the raw XML from the SOAP response. Axel.Can't call method "attr" on an undefined value at deserialize-test2.pl + line 23.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: SOAP::Deserializer problem
by rahed (Scribe) on Jul 31, 2007 at 10:04 UTC | |
by axelrose (Scribe) on Jul 31, 2007 at 12:01 UTC |