The code sample below shows how to use the .NET SOAPClient to consume a web service developed in .NET.
<%@ Language=VBScript %><%'Declare a MSSOAP.SoapClientDim oSoapClient'Initialize the MSSOAP.SoapClientSet mySoapClient = Server.CreateObject("MSSOAP.SoapClient")mySoapClient.ClientProperty("ServerHTTPRequest") = True'Associate the WebService with the SoapClientmySoapClient.mssoapinit "http://webservername/virtualdirectoryname/pagetobeServed.asmx?WSDL", "ServiceName"%> <% Response.WriteoSoapClient.HelloWorld() %> <% Set mySoapClient = Nothing%>