[mashup-dev] [jira] Commented: (MASHUP-16) Functions returning an
XMLList of one XML node fail.
Jonathan Marsh (JIRA)
jira at wso2.org
Mon May 21 14:13:02 PDT 2007
[ http://www.wso2.org/jira/browse/MASHUP-16?page=comments#action_10792 ]
Jonathan Marsh commented on MASHUP-16:
--------------------------------------
Huh? The operation can't be in-only if it has a return statement! Let me provide some more detail.
A service with three operations as follows:
function xmlnode(payload) {
return <successful/>;
}
function xmlnodelist(payload) {
return <><successful/></>;
}
function xmlnodelist2(payload) {
return <><successful/><excess/></>;
}
Each of these is represented as an in-out operation in the generated WSDL. (We don't support anything except in-out operations at this point.)
The first operation can be invoked successfully, the second two can't. While I don't know what to do about the third yet (an automatic wrapper? a wrapper derived from analizing the annotation?), this bug is about the second - where in E4X an XML node and an XML node list with a single item are treated identically. This bug is about that middle case - the first two operations should operate identically from the client perspective.
> Functions returning an XMLList of one XML node fail.
> ----------------------------------------------------
>
> Key: MASHUP-16
> URL: http://www.wso2.org/jira/browse/MASHUP-16
> Project: WSO2 Mashup Server
> Issue Type: Bug
> Environment: Private build, Vista
> Reporter: Jonathan Marsh
> Assigned To: Sameera Jayasoma
> Fix For: alpha_1
>
>
> works: return <content/>;
> doesn't work: return <><content/></>;
> Not sure what the desired behavior is here, esp. if there are multiple nodes in the node list, but it seems unfortunate to send a fault for an XMLList of zero or one item.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://www.wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the Mashup-dev
mailing list