in reply to SOAP::Lite & WSDL Problem
printing...$soap = SOAP::Lite->new( uri => ("http://www.webserviceX.NET"), proxy => ('http://www.webservicex.com/globalweather.asmx') +, ); $soap->on_action(sub{join '/',@_ }); my $city = SOAP::Data->name(CountryName => 'Singapore'); my $som = $soap->GetCitiesByCountry($city); if (my $match = $som->match('/Envelope/Body/GetCitiesByCountryResponse +/')) { print "match is OK: $match\n"; my $result = $som->valueof('//GetCitiesByCountryResponse/GetCitiesBy +CountryResult'); print Dumper($result); } else { print "match not OK: $match\n"; }
match is OK: 1 $VAR1 = '<NewDataSet> <Table> <Country>Singapore</Country> <City>Singapore / Paya Lebar</City> </Table> <Table> <Country>Singapore</Country> <City>Singapore / Changi Airport</City> </Table> </NewDataSet>';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: SOAP::Lite & WSDL Problem
by denny (Novice) on Oct 17, 2008 at 11:35 UTC | |
by denny (Novice) on Oct 17, 2008 at 11:40 UTC | |
by rahed (Scribe) on Oct 19, 2008 at 16:10 UTC |