I send arrays to cfcs all the time.  heres a simple example showing it working:
CFCWSTest.cfc
<cfcomponent>   
         <cffunction name="countArrayLen" access="remote" returntype="Numeric">
                 <cfargument name="inArray" type="Array" required="true"/>
                 <cfreturn arrayLen(inArray)>
         </cffunction>
</cfcomponent>

Main.mxml
<?xml version="1.0" encoding="iso-8859-1"?>
<mx:Application
         width="800" height="600"
         xmlns:mx=" http://www.macromedia.com/2003/mxml"
         creationComplete="appInit()">
         <mx:WebService
                  wsdl=" http://localhost:8500/CFWSTest.cfc?wsdl"
                  id="testSvs"
                  result="showResult(event.result)"/>
    <mx:Script>
        <![CDATA[

        function appInit() {
                var myArray:Array = new Array("jeff","lisa","kali","kukla");
                 testSvs.countArrayLen(myArray);
        }
                 function showResult(res:Number){
                           mx.controls.Alert.show("array contained "+ res + " items");
                 }
        ]]>
    </mx:Script>

</mx:Application>


Running without an issue for me. 


At 12:29 PM 8/23/2005, bsd wrote:
I’m still trying to figure this out…. Anyone who’s had experience with this issue and found a solution, your help would be appreciated
 
 

I'm passing an array from Flex to a web service located in a CFC.
It returns an error that states:

"org.xml.sax.SAXException: No deserializer for array type"


I've tried any number of workarounds to no avail, including:

1.       including the array as part of a structure that is passed to
the cfc (the structure by itself passes fine)

2.       sending the array as a separate argument to the cfc

3.       creating a separate method within the cfc to handle the array

4.       trying the data types array, object, structure, and any to
handle the array
 
 
 
 
 
Brad Dardaganian


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Computer software testing Macromedia flex Development
Software developer


YAHOO! GROUPS LINKS



Jeff Tapper
Chief Technologist
Tapper.net Consulting
[EMAIL PROTECTED]

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




Reply via email to