473,395 Members | 1,474 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,395 software developers and data experts.

Calling a .NET webservice from PERL

I'm using the XML::Client::DotNet module.

It works great! Except: I can't seem to pass any parameters to the webservice. I used the Soap Debugging info that's built in.

Here is the header I'm passing:
Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <soap:Envelope
  3.     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.     xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
  5.     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  6.     soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
  7.     xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  8.   <soap:Body>
  9.     <GetTestToken xmlns="http://localhost">
  10.       <userId xsi:type="xsd:string">0123</userId>
  11.     </GetTestToken>
  12.   </soap:Body>
  13. </soap:Envelope>
Here's the header they're expecting:
Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  3.   <soap:Body>
  4.     <GetTestToken xmlns="http://parata.webservice/">
  5.       <userId>string</userId>
  6.     </GetTestToken>
  7.   </soap:Body>
  8. </soap:Envelope>
Am I missing something?
Jul 19 '07 #1
2 1239
I went through today and modified the .PM file for SOAP::Lite. I made it so it would not display the extra namespaces that my webservice was not looking for.

The webservice description:
Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <soap:Envelope
  3.      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  4.      xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
  5.      xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  6.   <soap:Body>
  7.     <GetTestToken xmlns="http://localhost">
  8.       <userId>string</userId>
  9.     </GetTestToken>
  10.   </soap:Body>
  11. </soap:Envelope>
My new webservice description
Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <soap:Envelope
  3.     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  5.     xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  6.   <soap:Body>
  7.     <GetTestToken xmlns="http://localhost">
  8.       <userId xsi:type="xsd:string">0123</userId>
  9.     </GetTestToken>
  10.   </soap:Body>
  11. </soap:Envelope>
With the exception of the attribute in "userId" these two services are identical. I'm not worried about the attribute either, because as stated
here . The extra attribute does not matter anyways!

Am I doing something wrong? The service works, just not parameter passing! So is it my code? or what I'm passing?
Jul 20 '07 #2
KevinADC
4,059 Expert 2GB
Personally, I have no experience with what you are working on, and judging by the lack of replies from Miller and Jeff, the two other forum regulars here, I would have to assume they don't either. My best advise is to post your question on www.perlmonks.com where there are more active members with a wider range of experience and knowledge.
Jul 20 '07 #3

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

Similar topics

8
by: Rob Kellow | last post by:
Hello, I'm working on an application for use within my company on our intranet that will be used to gather some information and store some of the info in a SQL Server database and the rest of the...
1
by: Lakshmi | last post by:
Hi All, I am having performance issues with the .NET client calling the Java Webservice running on axis. Have detailed the problem below. Please help. I wrote a webservice in Java. Lets name...
7
by: Christian Wilhelm | last post by:
Hi! I'm trying to call a Java WebService out of a .net Client. There are two Methods, one Method requires one Parameter of type Parameter, the other Method requires one Parameter of type...
3
by: Henrik | last post by:
Hi all,,, I need to get a refferece to a XML-webservice, and get some data from it.... But I can't add it like an web-refference... What options does I else have?? I've been told that i've to...
3
by: Mike | last post by:
Timeout Calling Web Service I am calling a .NET 1.1 web service from an aspx page. The web service can take several minutes to complete its tasks before returning a message to the aspx page. ...
7
by: Nalaka | last post by:
Hi, I created a sinple web service that returns a dataSet. Then I created a client program that uses this web service (that returns the Dataset). My question is, how did the client figure...
0
by: dustyg99 | last post by:
dusty...@gmail.com Oct 6, 6:34 pm show options Newsgroups: microsoft.public.dotnet.framework.aspnet.webservices From: dusty...@gmail.com - Find messages by this author Date: 6 Oct 2005...
1
by: jens Jensen | last post by:
Hello , i'm calling a webservice generated with oracle webservice java tools. I'm not able to add a web reference to a .net client the usual way with visual studio 2005. I was therefore...
0
by: cataztrophe | last post by:
I have an ASP.NET/VB.NET program. There is a webservice does processing in a separate project which does not return any values. The webservice is executed upon clicking the run button on a certain...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.