By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,956 Members | 1,457 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,956 IT Pros & Developers. It's quick & easy.

Consume .net web services in Perl

P: 1
I try to develop a demo, which client in Perl will try to call the web services I wrote in C#. I've no knowledge in Perl, but as I refer to online forum, I try to follow their example but return no result.

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
  2. #!/bin/perl -w
  4.   use SOAP::Lite;
  5.   print "Content-type: text/html\n\n"; 
  6.   print SOAP::Lite
  8.     -> uri('')
  9.     -> proxy('')
  10.     -> hi()   
  11.     -> result;

But when try to test with .net web service with the code below, it returns blank page.

Expand|Select|Wrap|Line Numbers
  2. #!/bin/perl -w
  3. use SOAP::Lite;
  5. my $soap = SOAP::Lite
  7.     -> uri('http://mydomain')
  8.     -> on_action( sub { join '/', 'http://mydomain', $_[1] } )
  9.     -> proxy('http://mydomain/Example1/Service1.asmx');
  11. print "Content-type: text/html\n\n"; 
  12. 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?
Nov 5 '07 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 971
I do not have any experience when it comes to SOAP. If someone else here is not able to help you, then I would suggest that post a question on SOAP::Lite for Perl mailing list.

Nov 8 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.