Quantcast
Channel: Adobe Community : Popular Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 14291

Coldfusion invoke web service

$
0
0

I am trying to invoke a web service and I'm getting an error.

 

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. I can call this from a flex program and it will work fine.  I don't know much about Flex and I'm just learning it so I wanted to see if I could get it to work with ColdFusion.  

 

Here is the CFC I created:

 

    <cffunction name="myCalcFunction" access="remote" returntype="any">

            <cfinvoke

     webservice="http://servername/generation/bj/TestCalculation.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


Viewing all articles
Browse latest Browse all 14291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>