I've installed ActivePerl in my Win XP and tested my perl with the code below and it's successful.
Expand|Select|Wrap|Line Numbers
- #!/bin/perl -w
- use SOAP::Lite;
- print "Content-type: text/html\n\n";
- print SOAP::Lite
- -> uri('http://www.soaplite.com/Demo')
- -> proxy('http://services.soaplite.com/hibye.cgi')
- -> hi()
- -> result;
But when try to test with .net web service with the code below, it returns blank page.
Expand|Select|Wrap|Line Numbers
- #!/bin/perl -w
- use SOAP::Lite;
- my $soap = SOAP::Lite
- -> uri('http://mydomain')
- -> on_action( sub { join '/', 'http://mydomain', $_[1] } )
- -> proxy('http://mydomain/Example1/Service1.asmx');
- print "Content-type: text/html\n\n";
- print $soap->HelloWorld()->result;
Did I miss out any steps? What is the steps to consume web services in .net from Perl?
Anyway we can trace the transaction when it return just a blank page?
How can we know the error or exception?