Hi All,
I am using VBscript and Microsoft’s SOAP Toolkit 3.0 to invoke an ACL-enabled web service. I now have the code in place to authenticate the WSDL successfully. Here is the code:
Dim soapClient as Object = CreateObject(“MSSoap.SoapClient30”)
'First download the WSDL file locally using the ServerXMLHttp request object
Dim reqObj, response as Object
reqObj = CreateObject(“Msxml2.ServerXmlHttp”)
reqObj.Open(“GET”, “http://server:port/CU139/WERCS_Main.wsdl”, False, “user”, “pwd”)
reqObj.Send
response = reqObj.responseText
soapClient.ClientProperty(“ServerHTTPRequest”)=True
‘feed in response into mssoapinit
soapClient.mssoapinit(response, “”, “”)
if err.Number <> 0 then
MessageList("initialization failed ", err.description)
end if
'Provide authentication info for method call
soapClient.ConnectorProperty(“AuthUser”) = “user”
soapClient.ConnectorProperty(“AuthPassword”)=“pwd”
if err.Number <> 0 then
MessageList("Setting some connectorproperty failed ", err.description)
end if
‘call web method
soapClient.Main(sXML)
if err.Number <> 0 then
MessageList("Main call error ", err.description)
end if
The problem I have now is that I am receiving this 500 Internal Server error from webMethods while attempting to authenticate the service:
SOAP-ENV:Fault
SOAP-ENV:Client
[ISS.0088.9134] Exception occurred while processing the body of the message
http://server:port/soap/rpc
<detail xmlns:webM=“[URL=“API Integration Platform | Software AG”]API Integration Platform | Software AG”>
webM:exception webM:classNamecom.wm.app.b2b.server.AccessException</webM:className>
<webM:message xml:lang=“”>[ISS.0084.9004] Access Denied </webM:message>
</webM:exception>
</SOAP-ENV:Fault>
The service has Execute ACL set to a group of which I am part of. Enforce Execute ACL is set to “When top-level service only”. I am confident I am sending the correct credentials to authenticate the service. Any ideas? Thanks in advance.
-Chris-