Skip navigation
BJ - CF
Currently Being Moderated

web services/data services

Sep 29, 2011 4:11 PM

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

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points