[ 
https://wso2.org/jira/browse/MASHUP-757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16327#action_16327
 ] 

Keith Godwin Chapman commented on MASHUP-757:
---------------------------------------------

function children(){
        var e = <employees>
                        <employee id="0" 
><name>Jim</name><age>25</age></employee>
                        <employee id="1" 
><name>Joe</name><age>20</age></employee>
                </employees>;
        return e.employee[0].children();
}

For e.g the tryit output for the above function is

{0 : <name>Jim</name>, 1 : <age>25</age>, length : 2, item : function item() { 
[native code] }}

> Returning XMLList is not handled correctly by stub and hence the tryit
> ----------------------------------------------------------------------
>
>                 Key: MASHUP-757
>                 URL: https://wso2.org/jira/browse/MASHUP-757
>             Project: WSO2 Mashup Server
>          Issue Type: Bug
>            Reporter: Keith Godwin Chapman
>            Assignee: Jonathan Marsh
>             Fix For: 1.1
>
>
> It seems that the tryit was never tested for handling xmlList returns cause 
> the jsType added by the mashup server was xmlList while the stub used 
> xmllist. So the return was always treated as XML. I fixed this in the stub in 
> revision 15870 which exposed this bug.
> BTW I also changed the message receiver to remove a redundant wrapper for 
> XMLList.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to