472,780 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,780 software developers and data experts.

Consume .net web services in Perl

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('http://www.soaplite.com/Demo')
  9.     -> proxy('http://services.soaplite.com/hibye.cgi')
  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
1 1900
971 Expert 512MB
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

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

Similar topics

by: Michael Hatmaker | last post by:
I have begun experimenting with web services, and I created some simple web services in C# and was able to install them with IIS and create an equally simple C# client to consume them. My next...
by: John Bailo | last post by:
I wrote a .NET/c# webservice which I then needed to consume from java server pages. The simplest ( and best ) solution I found, was some code to open a socket, and send a SOAP message directly...
by: leslie_tighe | last post by:
Hello, I have a set of web services running on Java server that are exposed through axis 1.2.1. I can invoke these services in browser and through a java test client. However, when I try to...
by: frustratedcoder | last post by:
I need to consume a web service written in Perl but there is no wsdl file for this service. The perl soap client that can call and consume this web service looks like this (if it helps) #!perl...
by: frustratedcoder | last post by:
I have this Perl soap client which is consuming a Perl based web service. #!perl -w use SOAP::Lite +trace => "debug"; SOAP::Lite ->uri("urn:WebServices") ->proxy("http://example.com")...
by: Darren.Ratcliffe | last post by:
Hi Everyone I went on a lovely Microsoft course a fortnight ago, which served as an introduction to ASP.NET - I think it was Course 6310. And there was a good module on consuming XML Web...
by: hharry | last post by:
hello all, trying to consume a simple web service using httpwebrequest instead of generating a proxy class. code for simple web service: Imports System.Web.Services ...
by: =?Utf-8?B?VGVycnlC?= | last post by:
Hi there, Just wanted to know before I go through the pain and suffering of writing a prototype if it is possible for a 1.1 framework client to reference and consume a web service using WSE3.0....
by: Gary W. Smith | last post by:
I have a SOAP::Lite package written in perl on a *nix environment that I need to consume from a C#. The classes in perl are pretty simple, each taking a string and returning a string (ranging from...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
by: lllomh | last post by:
How does React native implement an English player?
by: Mushico | last post by:
How to calculate date of retirement from date of birth
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.