Here's a piece of code calling a web service:
<cfinvoke webservice="http://localhost/path/WS.cfc?wsdl"
method="X" returnvariable="Countries">
<cfinvokeargument name="A" value="Codes"/>
<cfinvokeargument name="B" value="listCountries"/>
<cfinvokeargument name="C" value="#StructNew()#"/>
</cfinvoke>
<cfdump var=#Countries#/><cfabort/>
And here is the web service itself:
<cfcomponent output="No">
<cffunction name="X" returntype="Any" output="No" access="Remote">
<cfargument name="A" type="String" required="Yes"/>
<cfargument name="B" type="String" required="Yes"/>
<cfargument name="C" type="Struct" required="Yes"/>
<cfset var Result = StructNew()/>
<!---
(main code commented out)
--->
<cfreturn Result/>
</cffunction>
</cfcomponent>
And for some reason CF is returning this message when trying to do the CFINVOKE:
Web service operation "X" with parameters {B={listCountries},C={{}},A={Codes}}
could not be found.
I browse directly to the CFC and get the usual CF auto-doc thing, no errors,
and the WSDL gets generated fine (as far as I can tell without really
understanding WSDL itself).
I can't see why it isn't working; am I missing something horrendously obvious
here?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253116
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4