I believe a boolean eq 1 or 0 in coldfusion and not true or false;
 
 
"First rule of programming, break the previous rule"

________________________________

De: flexcoders@yahoogroups.com de la part de Jason Doyle
Date: jeu. 12/22/2005 21:21
À: flexcoders@yahoogroups.com
Objet : [flexcoders] Pass array to CFC through Web Service


Has anyone got this to work?

I have been on this forever and cannto figure it out...

I am creating an array of objects like this. The target is a row from
a datagrid being dragged onto another grid.

    for(var i = 0; i <event.target.dataProvider.length; i++){
        aAssignments.push(event.target.dataProvider[i])
     }


aAssignments looke like this in the network monitor:

Parameter 1:
    name : aAssignments
    type : anyType

    value[array] :
        length[Number] : 3

        [0][object] :
            NUMASSIGNMENTID[Number] : 2931
            NUMLEVELOFEFFORT[Number] : 50
            NUMPERSONNELID[Number] : 6
            NUMPROJECTID[Number] : 1
            TXTPROJECTNAME[String] : CPE
            YNLEAD[Boolean] : true


        [1][object] :
            NUMASSIGNMENTID[Number] : 2933
            NUMLEVELOFEFFORT[Number] : 1
            NUMPERSONNELID[Number] : 6
            NUMPROJECTID[Number] : 4
            TXTPROJECTNAME[String] : Micromash
            YNLEAD[Boolean] : true


        [2][object] :
            NUMASSIGNMENTID[Number] : 2932
            NUMLEVELOFEFFORT[Number] : 50
            NUMPERSONNELID[Number] : 121
            NUMPROJECTID[Number] : 3
            TXTPROJECTNAME[String] : Done Deals
            YNLEAD[Boolean] : true


And my argument in my CFC looks like this:

    <cfargument name="aAssignments" type="array" required="yes" >

But I get this Axis error when I try to update the record:

<soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>coldfusion.xml.rpc.CFCInvocationException:
[coldfusion.runtime.UDFMethod$InvalidReturnTypeException : The value
returned from function remUpdateAssignments() is not of type
boolean.]</faultstring><detail>...
faultNamespaceURI[undefined] : undefined
faultactor[undefined] : undefined
faultcode[String] : soapenv:Server.userException

The array seems well formed, I am at a loss.







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


        
*        Visit your group "flexcoders 
<http://groups.yahoo.com/group/flexcoders> " on the web.
          
*        To unsubscribe from this group, send an email to:
         [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
          
*        Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service 
<http://docs.yahoo.com/info/terms/> . 


________________________________



------------------------------------------------------------------
**STATEMENT OF CONFIDENTIALITY** 

This e-mail and any attached files are confidential and intended solely for the 
use of the individual to whom it is addressed. If you have received this email 
in error please send it back to the person that sent it to you. Any views or 
opinions presented are solely those of author and do not necessarily represent 
those the Emakina Company. Unauthorized publication, use, dissemination, 
forwarding, printing or copying of this email and its associated attachments is 
strictly prohibited.

We also inform you that we have checked that this message does not contain any 
virus but we decline any responsability in case of any damage caused by an a 
non detected virus.
------------------------------------------------------------------



------------------------ Yahoo! Groups Sponsor --------------------~--> 
AIDS in India: A "lurking bomb." Click and help stop AIDS now.
http://us.click.yahoo.com/9QUssC/lzNLAA/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/
 

<<winmail.dat>>

Reply via email to