Link to home
Start Free TrialLog in
Avatar of pankajgharge
pankajghargeFlag for India

asked on

Consuming web service in classic ASP. (Server 2003)

On Server 2003 machine following code is not working. I have installed SOAP Toolkit 3.0.
Code fails at Set oSOAP = Server.CreateObject("MSSOAP.SoapClient30")
Error: Microsoft VBScript runtime (0x800A01AD) ActiveX component can't create object.
<html>
<head>
<title></title>
</head>
<body>
<%
        
         Dim oSOAP      
         Dim objDOMDoc
         Dim objResponse
         Set oSOAP = Server.CreateObject("MSSOAP.SoapClient30")
         oSOAP.ClientProperty("ServerHTTPRequest") = True
         oSOAP.mssoapinit("http://cpp.cisco.com/cpp/CPPLDAP/CPPLDAP.asmx?wsdl")     
         Set objDOMDoc = Server.CreateObject("Msxml2.DOMDocument.4.0")
         objResponse = objDOMDoc.loadXML(CStr(oSOAP.AuthenticateCiscoUser(1,"USERNAME","PASSWORD")))
         Response.Write(objResponse)
         
%>
 
</body>
</html>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of CoveyCraig
CoveyCraig

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial