Authentication error when using cfinvoke
Hi, I'm using Coldfusion 2016 and trying to consume a SAP web service using cfinvoke
The web Service requires authentication, so I'm including a username and password in the cfinvoke tag:
<cfinvoke
webservice="http://server:port/sap/bc/.../..bld?sap-client=xxx"
username="MY-USERNAME"
password="mypassword"
refreshWSDL="yes"
method="MY_METHOD"
returnvariable="SAPRet">
<cfinvokeargument name="ARG" value="0021002003" />
</cfinvoke>
I can trace the call to the webservice in Wireshark and see that the WSDL is retrieved just fine, but calling the actual method results in an "authorization failed" error. It seems that username/password specified in the cfinvoke tag are only used for retrieving the WSDL, as can be seen in the Wireshark trace, but they are not used for calling the method.
Same error occurs when using cfobject to consume the webservice.
When using SoapUI to consume the web service, I have to input username/password twice: Once for downloading the WSDL and once inside the request properties of the method.
How can I make cfinvoke (or cfobject) include username/password in the request properties?
