dcsimg
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web
Expertise: Beginner
Jun 22, 2009

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


Consuming .NET Web Services from Classic ASP with the Microsoft SOAP Toolkit

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
%>
Srinath MS
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date