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()); } }