I have not tried the <mx:request/> tag inside the <mx:operation/> tag,
but this is how I use <mx:WebServices/>

<mx:WebService id="contactFormCFC"
wsdl="http://localhost:8500/SomeService.cfc?wsdl";
useProxy="false"
showBusyCursor="true">
<mx:operation name="saveContact"
        result="viewContactList();"/>
</mx:WebService>

<mx:Button label="Save" click="contactFormCFC.saveContact(
'newContact' );" />     

Really basic example, 

Renaun

--- In [email protected], "kjlinboomer"
<[EMAIL PROTECTED]> wrote:
>
> Hello,
> 
> I am trying to call a CF component from flex using mx:WebService.  I
> am having trouble sending arguments to the component.  I get an "Array
> of input arguments did not contain a required parameter at position 0"
> error. I have tried putting the argument as a single quote as seen
> below and in double quotes and as a flash var but they all return the
> same error. If I use a component that requires no arguments then I get
> a return value and it works fine.      Any help with this would be
> very much appreciated.  Below is my mxml for the web service
> declaration and below that is the CFC code both are in very simple
> form as I am just trying to get this to work.
> 
> 
> <mx:WebService id="dataFunctions"
> wsdl="http://192.168.168.4:8500/keith/components/reportingNew.cfc?wsdl";
> showBusyCursor="true">
>   <mx:operation name="myFunction" result="alert(event.result);">
>       <mx:request>
>         <myArgument>'test'</myArgument> 
>       </mx:request>
>    </mx:operation>
> </mx:WebService>
> 
> 
> 
> <cfcomponent>
>   
>   <cffunction name="myFunction" access="remote" returntype="string">
>               <cfargument name="myArgument" type="string" required="yes">
>               <cfset myResult="foo">
>               <cfreturn myResult>
>   </cffunction>
> 
> </cfcomponent>
> 
> Thanks,
> 
> Keith
>






--
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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to