in reply to Re^2: SOAP::Deserializer problem
in thread SOAP::Deserializer problem
I didn't realise you don't code the request like this:
$method = SOAP::Data->name('command'=>'value');
So to access attribute values you should use
$attr_value = $som->dataof('//Envelope/Body/command')->attr->{'template'};
or
$attr_value = $som->dataof('//command')->attr->{'template'};
(I don't remember which one because don't use attributes.)
This should hold for
<Envelope>
<Body>
<command template="foo">100</command>
</Body>
</Envelope>
and $attr_value is foo, command value is 100.
Docs are in SOAP/SOM.pod of perl/site/lib directory.
$method = SOAP::Data->name('command'=>'value');
So to access attribute values you should use
$attr_value = $som->dataof('//Envelope/Body/command')->attr->{'template'};
or
$attr_value = $som->dataof('//command')->attr->{'template'};
(I don't remember which one because don't use attributes.)
This should hold for
<Envelope>
<Body>
<command template="foo">100</command>
</Body>
</Envelope>
and $attr_value is foo, command value is 100.
Docs are in SOAP/SOM.pod of perl/site/lib directory.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: SOAP::Deserializer problem
by axelrose (Scribe) on Jul 29, 2007 at 18:47 UTC | |
by rahed (Scribe) on Jul 31, 2007 at 10:04 UTC | |
by axelrose (Scribe) on Jul 31, 2007 at 12:01 UTC |
In Section
Seekers of Perl Wisdom