I am guessing a data type convergence
problem. Change the CLID to a string and the others to strings or just use any.
I am trying to pass three arguments to a CFC like this:
<mx:operation name="getQuestionsXML"
result="handleXML
(event.result)"
fault="handleXML(event.fault.faultstring)">
<mx:request>
<CLID>{CLID.text}</CLID>
<XMLELEMENT>category</XMLELEMENT>
<TOP>1</TOP>
</mx:request>
</mx:operation>
The error being returned is 'Array of input
arguments did not
contain a required parameter at position 0', but
I'm confused as to
why that would be the case. My CF is here:
<cffunction
name="getQuestionsXML" returntype="any"
access="remote"
output="false">
<cfargument
name="CLID" required="true"
type="numeric">
<cfargument
name="xmlelement" required="true"
type="string">
<cfargument
name="top" required="true"
type="numeric">
Is using <mx:request> a valid way to pass
arguments to CFC's?
Also, if my function returns an XML string, how
can I convert it to
a usable XML object?
Thanks,
Max
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
|
- RE: [flexcoders] Passing arguments to coldfusion cfc's / mx:Web... Dan Plesse
-