using System; using System.Web.Services; using System.Web.Services.Protocols; [System.Web.Services.WebServiceBinding(Namespace="http://tempuri.org/Hello"), public class Hello : SoapHttpClientProtocol { public Hello () { this.Url = "http://yoururl/cgi-bin/hello.pl"; } [SoapDocumentMethod("http://tempuri.org/Hello/HelloWorld")] public virtual string HelloWorld() { System.Object[] results = this.Invoke("HelloWorld", new object[0]); return ((string)(results[0])); } public static void Main() { Hello foo = new Hello(); Console.WriteLine(foo.HelloWorld()); } } #### #! /usr/bin/perl use strict; use SOAP::Transport::HTTP; use lib '/var/www/cgi-bin/soap_modules'; use Hello; SOAP::Transport::HTTP::CGI -> dispatch_to( 'Hello') -> handle; #### package Hello; sub HelloWorld { return ("Hello, World"); } 1;