Hi All,

  I am getting an error on a cfinvoke if i change the method from square to squarex,add,sq1 or anything else. I am using cfmx 6.1 Any help would be appreciated.

Pat

error:
=======
Web service operation "squarex" with parameters {num1={544},} could not be found.  


  
The error occurred in E:\apps\fl\pat\cfc_example\example2.cfm: line 13


11 : method="squarex"
12 : returnVariable="var1">
13 :      <cfinvokeargument name="num1" value="544" >
14 : </cfinvoke>
15 : <cfdump var="#var1#">

cfc
=============
<cfcomponent>
  <cffunction name="square" returnType="string" access="remote">
    <cfargument name="num1" type="string" required="true">

<cfset sum = arguments.num1 + arguments.num1 >
    <cfreturn sum >
  </cffunction>
</cfcomponent>

cfm
===========
<cfinvoke webservice="http://usaflweb01/apps/fl/pat/cfc_example/example2.cfc?wsdl"
method="square"
returnVariable="var1">
   <cfinvokeargument name="num1" value="544" >
</cfinvoke>
<cfdump var="#var1#">
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to