Hi,

I would like to pass a model to a CFC but an error occurs. If I pass only
"name" and "age" I can catch the values as a struct, if I pass only "ar" I
have success too. But I don't have success with all together.

Please, can anyone help me?

Thanks in advance.

MXML
<mx:WebService id="ws" wsdl="http://localhost:8500/ro.cfc?wsdl";   
showBusyCursor="true">
<mx:operation name="t1">
<mx:request>
<data>{model}</data>
</mx:request>
</mx:operation>
</mx:WebService>

<mx:Model id="model">
<name>Hamad</name>
<age>29</age>
<ar>{ar}</ar>
</mx:Model>

<mx:Script>
<![CDATA[
var ar = [{value:"1", label:"cirilo"},{value:"2", label:"pet"},{value:"3",
label:"rico"}];
]]>
</mx:Script>

CFC
<cffunction name="t1" access="remote" returntype="any">
<cfargument name="data" required="Yes" type="struct">
<cfsavecontent variable="out">
<cfdump var="#data#">
</cfsavecontent>
<cffile action="write" file="c:\test.htm" output="#out#">
<cfset t = "ok">
<cfreturn t/>
</cffunction>

[]s
Hamad Amaral
[EMAIL PROTECTED]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

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