in reply to SOAP::Lite Response Parsing
:) That response looks parsed already :) See Re: Parsing SOAP::Lite results (with Data::Diver)
The issue is that I am not able to pull the values of tag's' like plant, material_desc etc.
Maybe you want "//MT_LABEL_IN/HEADER/*" ? IE keep doing what you're already doing?
Works for me
for my $d ( $xmlResponse->dataof("//MT_LABEL_IN/HEADER/*") ){ print "$d ", $d->name, " = ", $d->value, "\n", } __END__ SOAP::Data=HASH(0xa6a76c) material = 12659-250GM SOAP::Data=HASH(0xa6ab5c) batch = D00166202 SOAP::Data=HASH(0xa6af74) material_desc = Albumin, Bovine Serum, Fra +ct 1PC x 250GM SOAP::Data=HASH(0xa6b744) plant = US05
or post code that shows that, code that runs, not fragments, maybe code like Re^3: SOAP::Lite - Attribute in array
or the acdtual xml of the response, as the DDumper you've shown doesn't have Purity(1)
This invocation of DDumper has purity
sub ppp { use Data::Dumper(); return Data::Dumper->new( [@_] )->Sortkeys( 1 )->Purity( 1 )->Inde +nt( 0 ) ->Useqq( 1 )->Dump . '$VAR1;'; } ## end sub ppp
Links to soap tips including getting tidy debugging info in Re: Why can't SOAP::Lite deserialize its own output? (it does)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: SOAP::Lite Response Parsing
by Abhijit10089 (Novice) on Sep 04, 2014 at 10:59 UTC |