in reply to Problem with SOAP call using SOAP::Lite and wsdl
$client = SOAP::Lite->new( uri => 'http://www.webserviceX.NET/', proxy => 'http://www.webservicex.net/ConvertSpeed.asmx', ); $client->on_action(sub {"http://www.webserviceX.NET/ConvertSpeed"}); $client->autotype(0); $sheader = SOAP::Header->new(''); $sheader->type(xml => ''); $client->ns('http://www.webserviceX.NET/','web'); $client->envprefix('soapenv'); push @request, SOAP::Data->name(speed => 100)->prefix('web'); push @request, SOAP::Data->name(FromUnit => 'kilometersPerhour')->pref +ix('web'); push @request, SOAP::Data->name(ToUnit => 'milesPerhour')->prefix('web +'); $soapResp = $client->ConvertSpeed($sheader,@request); print $soapResp->result,"\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem with SOAP call using SOAP::Lite and wsdl
by Anonymous Monk on Jan 19, 2018 at 11:45 UTC | |
by rahed (Scribe) on Jan 19, 2018 at 13:48 UTC | |
by Anonymous Monk on Jan 22, 2018 at 11:29 UTC |