Data Access Worldwide Knowledge Base

Article ID 2105
Article Title Calling Web Services from Active Server Page VBScript code
Article URL http://www.dataaccess.com/kbasepublic/kbprint.asp?ArticleID=2105
KBase Category WEB APPLICATIONS
Date Created 04/07/2005
Last Edit Date 04/07/2005


Article Text
QUESTION:
How can I call a Web Service from VBScript code in my ASP page?

ANSWER:
1. Downloading and Installing the Microsoft SOAP Toolkit 3.0 on the server.

2. After that, the VBScript code is very straightforward.
For example:

<%@ LANGUAGE=VBScript %>

<%
    Dim soap
    Dim SoapReply
    
    Set soap = Server.CreateObject("MSSOAP.SoapClient30")
    soap.ClientProperty("ServerHTTPRequest")=True
    soap.MSSoapInit "http://localhost/daw.examples.order11/testservice.wso?WSDL"

    SoapReply=soap.SayHello("Dennis")
%>



Web Links Related to this Article
Microsoft SOAP Toolkit 3.0
URL=http://www.microsoft.com/downloads/details.aspx?FamilyId=C943C0DD-CEEC-4088-9753-86F052EC8450&displaylang=en


Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2010 Data Access Corporation. All rights reserved.

The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.