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# client and Perl Soap::Lite Server Eric Microsoft ASP .NET 0 6th Mar 2007 07:31 PM
got <faulterror>soap:client<faulterror> while using soap toolkit to access C# web service hapordigi@gmail.com Microsoft VC .NET 0 24th Apr 2005 10:46 AM
Embed Perl or execute perl script Kai Thorsrud Microsoft VB .NET 2 5th Jan 2004 11:30 PM
SOAP Client creation in ASP.NET using MS SOAP Toolkit Sham Ramakrishnan Microsoft ASP .NET 2 1st Jul 2003 12:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:15 AM.