Hammy has asked for the wisdom of the Perl Monks concerning the following question:
I can not figure out how to get the bottom nodes out of this XML structure. On a complete side note, I have the on_fault() doing nothing. Is there a variable I can use to capture a fault that is returned - such as on_fault(sub {print "the fault"}). Thanks for all your help.my $s = SOAP::Lite -> uri ('This is my URI') -> proxy ('This is my proxy.asmx') -> on_action(sub{join '/', @_}) -> on_fault(sub{}); $result = $s->PerformUpdate($data)->result; if ($result) { my $xs = new XML::Simple(keeproot => 1); my $XMLref = $xs->XMLin($result, suppressempty => ''); print $XMLref->{wellmed}->{wellmed.ack}->{errors}; } #using data dumper I get the following output $VAR1 = { 'wellmed' => { 'wellmedack' => {}, 'wellmed.ack' => { 'error +s' => '0', 'wellmed.response' => 'User data updated for ID: aac20fd41 +e07ea11d9bfc1ac192a16aa77', 'responses' => '1' } } };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Decipher HASH from XML
by tachyon (Chancellor) on Sep 24, 2004 at 00:48 UTC | |
by Hammy (Scribe) on Sep 24, 2004 at 12:00 UTC | |
|
Re: Decipher HASH from XML
by JediWizard (Deacon) on Sep 23, 2004 at 21:35 UTC |