in reply to Trouble getting started with SOAP (SOAP::Lite, SOAP::WSDL), translating from PHP to Perl
I don't do PHP, but I can help you to get started with
SOAP::WSDL. Here's an example that gets the current weather
for KSFO(San Francisco):
#!/usr/bin/perl use strict; use warnings; use SOAP::WSDL; my $soap = SOAP::WSDL->new(); my $som = $soap->wsdl( "http://www.webservicex.net/GlobalWeather.asmx?WSDL") -> call('GetWeather', GetWeather => { CountryName => 'United States', CityName => 'San Francisco' } ); print $som->result(), "\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Trouble getting started with SOAP (SOAP::Lite, SOAP::WSDL), translating from PHP to Perl
by Anonymous Monk on Feb 20, 2012 at 19:47 UTC | |
by tangent (Parson) on Feb 20, 2012 at 20:14 UTC | |
by Anonymous Monk on Feb 20, 2012 at 20:40 UTC | |
by tangent (Parson) on Feb 20, 2012 at 21:44 UTC | |
by Anonymous Monk on Feb 21, 2012 at 16:21 UTC | |
|
In Section
Seekers of Perl Wisdom