DreamT has asked for the wisdom of the Perl Monks concerning the following question:
I am able to extract the values I want (StatusID etc), EXCEPT for the Manufacturer attribute "ManufacturerCode". (I'm using the following method to get the values<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" x +mlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schema +s.xmlsoap.org/soap/envelope/"> <soap:Body> <get_ManufacturerListResponse xmlns="http://webservice.isolda.se/S +tandard"> <get_ManufacturerListResult> <StatusID>int</StatusID> <StatusMessage>string</StatusMessage> <InputString>string</InputString> <Results>int</Results> <Generated>dateTime</Generated> <Manufacturers> <Manufacturer ManufacturerCode="HP" /> <Manufacturer ManufacturerCode="Lexmark" /> </Manufacturers> </get_ManufacturerListResult> </get_ManufacturerListResponse> </soap:Body> </soap:Envelope>
(And, I'm actually able to loop over all the 'Manufacturer' posts usingmy $StatusID = $soapSvar->valueof('//get_ManufacturerListResult/Status +ID'); )
) BUT, in the loop above, i'm not able to "get" the manufacturerCode attribute ("HP", "Lexmark" etc.). How should I do it?for my $t ($som->valueof('//get_ManufacturerListResult/Manufacturers/M +anufacturer')) { }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SOAP::Lite - Attribute in array
by Anonymous Monk on Nov 05, 2008 at 14:20 UTC | |
by DreamT (Pilgrim) on Nov 05, 2008 at 14:45 UTC | |
by Anonymous Monk on Nov 05, 2008 at 14:47 UTC | |
by AnomalousMonk (Archbishop) on Nov 05, 2008 at 15:09 UTC | |
by Anonymous Monk on Nov 05, 2008 at 15:28 UTC | |
by DreamT (Pilgrim) on Nov 05, 2008 at 15:04 UTC | |
by Anonymous Monk on Nov 05, 2008 at 15:09 UTC |