I am trying to invoke a web service from coldfusion and I'm getting an error. I can get it to connect fine using the data services in Flash builder and pointing it to the WSDL. Since I can get it to connect for a flex form is there something in CF that I need to do.
Here is the error the CF is giving me.
Error 401 Unauthorized. Unable to read WSDL from URL: http://servername/generation/bj/TestCalculation.wsdl. An exception occurred while invoking an event handler method from Application.cfc. The method name is: onRequest.
I can put the URL in the browser and it will pull up the WSDL.
Here is the CFC I created:
<cffunction name="myCalcFunction" access="remote" returntype="any">
<cfinvoke
webservice=http://servername/generation/bj/TestCalculation.wsdl?wsdl
method="TestCalculation"
returnvariable="response">
<cfinvokeargument name="number1" value="#arguments.number1#"/>
<cfinvokeargument name="number2" value="#arguments.number2#"/>
</cfinvoke>
<cfreturn response>
</cffunction>
Can anyone point me in the right direction of what I can do?
thanks for the support.
BJ