Abhijit10089 has asked for the wisdom of the Perl Monks concerning the following question:
Now when i am trying to access the values in the Header Tag: print Dumper ($a->{_value}); where $a is $xmlResponse->dataof("//MT_LABEL_IN/*")$VAR1 = bless( { '_content' => [ 'SOAP:Envelope', { 'xmlns:SOAP' => 'http://schemas.xml +soap.org/soap/envelope/' }, [ [ 'SOAP:Header', {}, '', undef, '', '{http://schemas.xmlsoap.org/soap +/envelope/}Header', {} ], [ 'SOAP:Body', {}, [ [ 'ns0:MT_LABEL_IN', { 'xmlns:ns0' => 'http://emdc +hemicals.com/xi/label/masterdata' }, [ [ 'HEADER', {}, [ [ 'material', {}, '12659-250GM', undef, '12659-250GM', 'material', {} ], [ 'batch', {}, 'D00166202', undef, 'D00166202', 'batch', {} ], [ 'material_desc', {}, 'Albumin, Bovine Seru +m, Fract 1PC x 250GM', undef, 'Albumin, Bovine Seru +m, Fract 1PC x 250GM', 'material_desc', {} ], [ 'plant', {}, 'US05', undef, 'US05', 'plant', {} ] ], undef, { 'batch' => 'D00166202', 'plant' => 'US05', 'material_desc' => 'Alb +umin, Bovine Serum, Fract 1PC x 250GM', 'material' => '12659-25 +0GM' }, 'HEADER', {} ] ], undef, { 'HEADER' => $VAR1->{'_conte +nt'}[2][1][2][0][2][0][4] }, '{http://emdchemicals.com/xi/ +label/masterdata}MT_LABEL_IN', {} ] ], undef, { 'MT_LABEL_IN' => $VAR1->{'_cont +ent'}[2][1][2][0][4] }, '{http://schemas.xmlsoap.org/soap +/envelope/}Body', {} ] ], undef, { 'Body' => $VAR1->{'_content'}[2][1] +[4], 'Header' => '' }, '{http://schemas.xmlsoap.org/soap/env +elope/}Envelope', {} ], '_context' => undef, '_current' => [ $VAR1->{'_content'} ] }, 'SOAP::SOM' );
$VAR1 = [ \bless( { '_signature' => [], '_value' => [ bless( { '_name' => 'material', '_signature' => [], '_value' => [ '12659-250GM +' ], '_prefix' => '', '_attr' => {} }, 'SOAP::Data' ), bless( { '_name' => 'batch', '_signature' => [], '_value' => [ 'D00166202' ], '_prefix' => '', '_attr' => {} }, 'SOAP::Data' ), bless( { '_name' => 'material_desc' +, '_signature' => [], '_value' => [ 'Albumin, Bo +vine Serum, Fract 1PC x 250GM' ], '_prefix' => '', '_attr' => {} }, 'SOAP::Data' ), bless( { '_name' => 'plant', '_signature' => [], '_value' => [ 'US05' ], '_prefix' => '', '_attr' => {} }, 'SOAP::Data' ) ], '_attr' => {} }, 'SOAP::Data' ), {} ];
The issue is that I am not able to pull the values of tag's' like plant, material_desc etc. Could someone please let me know how to perform this? Best Regards, Abhijit Singh Dahiya
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SOAP::Lite Response Parsing
by Anonymous Monk on Aug 22, 2014 at 08:54 UTC | |
by Abhijit10089 (Novice) on Sep 04, 2014 at 10:59 UTC |