[ 
https://issues.apache.org/jira/browse/AXIS-1675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Davanum Srinivas updated AXIS-1675:
-----------------------------------

    Assignee:     (was: Davanum Srinivas)

> WSDL2Java doesn’t use return value when two out parameters exist.
> -----------------------------------------------------------------
>
>                 Key: AXIS-1675
>                 URL: https://issues.apache.org/jira/browse/AXIS-1675
>             Project: Axis
>          Issue Type: Bug
>          Components: Serialization/Deserialization
>    Affects Versions: 1.2RC2
>         Environment: cvs 11/19/2004
>            Reporter: Sébastien Tardif
>         Attachments: diff.txt, docHarbor.wsdl
>
>
> Title: WSDL2Java doesn’t use return value when two out parameters exist.
> From my WSDL I get this:
> void getDocument(Credential credential, Users users, DocumentRequest 
> documentRequest, DocumentResponseHolder _return, ByteArrayHolder document) 
> throws RemoteException;
> void getDocumentAsAttachment(Credential credential, Users users, 
> DocumentRequest documentRequest, OctetStreamHolder document, 
> holders.DocumentResponseHolder _return) throws RemoteException;
> As you can see operation [getDocument] has two out parameters: [document] and 
> [return]. 
> Operation [getDocumentAsAttachment] has also two out parameters: [document] 
> and [return].
> The result should be:
> DocumentResponse getDocument(Credential credential, Users users, 
> DocumentRequest documentRequest, ByteArrayHolder document) throws 
> RemoteException;
>     
> DocumentResponse getDocumentAsAttachment(Credential credential, Users users, 
> DocumentRequest documentRequest, OctetStreamHolder document) throws 
> RemoteException;
> The code in Axis try sometime to take one of the out parameters and take it 
> as the return type but in my case it doesn’t trigger.
> To have a long time fix I suggest to just implement right now the JAX-RPC 2.0 
> way which is to map to the return value of the signature the element using 
> name: [return] as shown below:
> From section 2.3.2 Parameter Order and Return Type of JAX-RPC 2.0 
> specification:
> Wrapper style mapping If there is a single out wrapper child then it forms 
> the method return type, 
> if there is an out wrapper child with a local name of “return” then it forms 
> the method return 
> type, otherwise the return type is void. 
> From section 3.8.2 Method and Parameters of JAX-RPC 2.0 specification:
> <xsd:element name="getPriceResponse" type="tns:getPriceResponseType"/>
> <xsd:complexType name="getPriceResponseType">
>  <xsd:sequence>
>   <xsd:element name="return" type="xsd:float"/>
>  </xsd:sequence>
> </xsd:complexType>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to