ColdFusion CFHTTP Web Service - 401 Authentication Error
Posted on 2011-02-15
We have a server that is running Microsoft Dynamics, which offers some web services. I am trying to use CF9 on a different server to send a request to a web service on the Dynamics box. I can view the WSDL in my browser using my login credentials. I can also test it using a desktop app called SOAP Sonar. That tool has a way to specify authentication before making the web service call.
However, when I try to use CF, by building the XML we will send and using cfhttp, I get an IIS 401 authentication error. I have the username and password in the cfhttp tag.
Thinking it might be the server with CF that is having trouble with authentication, I ran my local instance of CF9 and tried the same code. Same error.
What could cause a cfhttp tag to not properly pass the authentication information? Or is there somewhere else I should be looking?