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