[mashup-dev] [jira] Commented: (MASHUP-356) Check for clashes between "return" output parameter and input parameters

Jonathan Marsh (JIRA) jira at wso2.org
Mon Nov 26 18:35:33 PST 2007


    [ http://wso2.org/jira/browse/MASHUP-356?page=comments#action_13602 ] 
            
Jonathan Marsh commented on MASHUP-356:
---------------------------------------

An error is appropriate here.  It's easier to loosen up later than to tighten up.  At this point let's generally be conservative and throw errors when we're not quite sure what the best behavior is.

> Check for clashes between "return" output parameter and input parameters 
> -------------------------------------------------------------------------
>
>                 Key: MASHUP-356
>                 URL: http://wso2.org/jira/browse/MASHUP-356
>             Project: WSO2 Mashup Server
>          Issue Type: Bug
>            Reporter: Jonathan Marsh
>         Assigned To: Keith Godwin Chapman
>             Fix For: 0.3
>
>
> > > By convention we name the javascript return value “return” and
> > > generate the schema and signature appropriately. But if someone uses
> > > the name “return” for an input parameter, the signature would have to
> > > change to an #inout in this case. Does that make sense or do you
> > think
> > > it would make for messy signatures in other languages?
> > >
> > I suppose it'd be better if you mapped it to "return" only if there are
> > no clashes. If there is a clash, prepend a "_" then rinse and repeat. I
> > think that's what an early version of the JAX-WS mapping for WSDL 2.0
> > did.
> Also need to check that the try-it doesn't have a hard-wired dependency on "return" but uses the value from the WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://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