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

LVL 1
pankajghargeAsked:
Who is Participating?
 
CoveyCraigCommented:
Your problem probably lies in folder/file permissions:  In Windows Explorer, browse to the following folder:  C:\Program Files\Common Files\MSSoap\Binaries

Right-click, choose Sharing & Security.  Click the Security tab.  Click the add button.  Add the following users:  IUSR (click check names), then add IIS (click check names), then add network services.  On all three, give read/write permissions.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.