[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 300
  • Last Modified:

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

0
pankajgharge
Asked:
pankajgharge
1 Solution
 
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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now