PC Review


Reply
Thread Tools Rate Thread

c# soap client with perl server

 
 
Greg
Guest
Posts: n/a
 
      30th Jun 2008
Hello I am trying to talk to my perl soap server. Right now I just
have a very simple hello world perl server doing soap in the
background. I can talk to the perl very easily with a perl client. I
can not get the C# to talk correctly to the perl though. I am trying
to use the SoapClient provided in the web services 3 toolkit.
Included is my code. Hi is the method on the server. I am not sure
what mutators I should use in the SoapEnvelope object in order to call
the right method on my perl end. Right now I get the following error:

SOAPAction shall match 'uri#method' if present (got 'urn#Hi', expected
'http://tempuri.org/#string'

Any help would be appreciated.

using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Web.Services3;
using Microsoft.Web.Services3.Messaging;

namespace ConsoleApplication1
{
public class MyReceiver : SoapClient
{
public MyReceiver(Uri destination) : base(destination) { }

[SoapMethod("Hi")]
public SoapEnvelope Hi(SoapEnvelope envelope)
{
SoapEnvelope env = null;
try
{
env = base.SendRequestResponse("urn#Hi", envelope);
}
catch (Exception e)
{
System.Console.Write(e.Message);
}
return env;
}
}
}
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java client and .NET 2.0 ASP.NET Web Service: SOAP port uses anon-standard SOAP 1.2 binding uupi_duu@yahoo.com Microsoft C# .NET 0 22nd May 2009 02:10 PM
C# needing to consume perl/SOAP::Lite service Gary W. Smith Microsoft C# .NET 1 18th Sep 2007 01:18 AM
C# client and Perl Soap::Lite Server Eric Microsoft ASP .NET 0 6th Mar 2007 06:31 PM
Interoperability ASP.NET : Perl using SOAP Web Services josh Microsoft Dot NET Framework 0 13th Jan 2005 04:15 AM
Re: Anyone used C# .NET to consume a Perl SOAP::Lite service? J. Patrick Brandt Microsoft C# .NET 0 6th Aug 2003 12:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:30 PM.