473,327 Members | 2,069 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Consume .net web services in Perl

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
  1.  
  2. #!/bin/perl -w
  3.  
  4.   use SOAP::Lite;
  5.   print "Content-type: text/html\n\n"; 
  6.   print SOAP::Lite
  7.  
  8.     -> uri('http://www.soaplite.com/Demo')
  9.     -> proxy('http://services.soaplite.com/hibye.cgi')
  10.     -> hi()   
  11.     -> result;
  12.  
  13.  

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


Expand|Select|Wrap|Line Numbers
  1.  
  2. #!/bin/perl -w
  3. use SOAP::Lite;
  4.  
  5. my $soap = SOAP::Lite
  6.  
  7.     -> uri('http://mydomain')
  8.     -> on_action( sub { join '/', 'http://mydomain', $_[1] } )
  9.     -> proxy('http://mydomain/Example1/Service1.asmx');
  10.  
  11. print "Content-type: text/html\n\n"; 
  12. print $soap->HelloWorld()->result;
  13.  
  14.  

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 1920
eWish
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.

--Kevin
Nov 8 '07 #2

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

Similar topics

2
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...
4
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...
0
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...
3
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...
1
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")...
8
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...
2
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 ...
3
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....
1
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.