C
carex
Hello,
Why do I get for answer: "please, enter a proper IP" ?????
Here below the code I am using.
After a few hours I found that the line "on_action....." is needed for
interoperability with .net.
But even so it still does not work.
Any idea ?
Thanks.
carex.
#!/usr/bin/perl -w
use SOAP::Lite +trace => 'all';
$response = SOAP::Lite
-> uri("http://www.webservicex.net")
-> on_action( sub { join '/', 'http://www.webservicex.net', $_[1] } )
-> proxy("http://www.webservicex.net/geoipservice.asmx")
-> GetGeoIP('192.25.206.10') . "\n";
die "Fault: ".$response->faultcode." ".$response->faultdetail."
".$response->faultstring if $response->faultcode;
print $response->result;
### NOT OK
I also tried with other webservices from this site
(www.webservicex.net)
But without success when called within my perl script.
But I am new to webservices and still do not understand the diff
between uri/proxy.
Yes, I did have a look at www.soaplite.com
And yes, the example from the guide is working (hibye.pl)
Why do I get for answer: "please, enter a proper IP" ?????
Here below the code I am using.
After a few hours I found that the line "on_action....." is needed for
interoperability with .net.
But even so it still does not work.
Any idea ?
Thanks.
carex.
#!/usr/bin/perl -w
use SOAP::Lite +trace => 'all';
$response = SOAP::Lite
-> uri("http://www.webservicex.net")
-> on_action( sub { join '/', 'http://www.webservicex.net', $_[1] } )
-> proxy("http://www.webservicex.net/geoipservice.asmx")
-> GetGeoIP('192.25.206.10') . "\n";
die "Fault: ".$response->faultcode." ".$response->faultdetail."
".$response->faultstring if $response->faultcode;
print $response->result;
### NOT OK
I also tried with other webservices from this site
(www.webservicex.net)
But without success when called within my perl script.
But I am new to webservices and still do not understand the diff
between uri/proxy.
Yes, I did have a look at www.soaplite.com
And yes, the example from the guide is working (hibye.pl)