I am trying to get SOAP to work in perl.
In PHP, it works fine and without problems. And now I'm trying to do the same in Perl.
Functional PHP:
$client = new SoapClient("http://thirdpartyurl.com/api.aspx?WSDL");
$info = $client->GetSomeInfo(array('username' => 'myusername', 'password' => 'mypassword'));
Which works fine, but I just can't get it to work in perl. I tried SOAP :: Lite but did not achieve anything. And now I'm trying to use SOAP :: WSDL:
use SOAP::WSDL;
my $wsdl = SOAP::WSDL->new(wsdl => 'http://thirdpartyurl.com/api.aspx?WSDL');
my $info = $wsdl->call('GetSomeInfo', 'username', 'myusername', 'password', 'mypassword');
It just doesn't work. I looked at the raw requests and the perl version does not even send user / password parameters. What am I doing wrong?
aidan source
share