Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 14349 invoked from network); 19 Nov 2004 21:33:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 19 Nov 2004 21:33:34 -0000 Received: (qmail 7149 invoked by uid 500); 19 Nov 2004 21:33:32 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 6896 invoked by uid 500); 19 Nov 2004 21:33:31 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 6878 invoked by uid 99); 19 Nov 2004 21:33:31 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 19 Nov 2004 13:33:26 -0800 Received: (qmail 25343 invoked from network); 19 Nov 2004 21:33:24 -0000 Received: from localhost (HELO nagoya) (127.0.0.1) by nagoya.betaversion.org with SMTP; 19 Nov 2004 21:33:24 -0000 Message-ID: <1407002329.1100900004853.JavaMail.apache@nagoya> Date: Fri, 19 Nov 2004 13:33:24 -0800 (PST) From: =?ISO646-US?Q?S=3Fbastien_Tardif_=28JIRA=29?= To: axis-dev@ws.apache.org Subject: =?ISO-8859-1?Q?[jira]_Created:_(AXIS-1675)_WSDL2Java_doesn=92t_?= =?ISO-8859-1?Q?use_return_value_when_two_out_parameters_exist.?= Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N WSDL2Java doesn=92t use return value when two out parameters exist. ----------------------------------------------------------------- Key: AXIS-1675 URL: http://nagoya.apache.org/jira/browse/AXIS-1675 Project: Axis Type: Bug Components: Serialization/Deserialization =20 Versions: 1.2RC2 =20 Environment: cvs 11/19/2004 Reporter: S=E9bastien Tardif Title: WSDL2Java doesn=92t use return value when two out parameters exist. >From my WSDL I get this: void getDocument(Credential credential, Users users, DocumentRequest docume= ntRequest, DocumentResponseHolder _return, ByteArrayHolder document) throws= RemoteException; void getDocumentAsAttachment(Credential credential, Users users, DocumentRe= quest documentRequest, OctetStreamHolder document, holders.DocumentResponse= Holder _return) throws RemoteException; As you can see operation [getDocument] has two out parameters: [document] a= nd [return].=20 Operation [getDocumentAsAttachment] has also two out parameters: [document]= and [return]. The result should be: DocumentResponse getDocument(Credential credential, Users users, DocumentRe= quest documentRequest, ByteArrayHolder document) throws RemoteException; =20 DocumentResponse getDocumentAsAttachment(Credential credential, Users users= , DocumentRequest documentRequest, OctetStreamHolder document) throws Remot= eException; 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=92t 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 usi= ng name: [return] as shown below: >From section 2.3.2 Parameter Order and Return Type of JAX-RPC 2.0 specifica= tion: Wrapper style mapping If there is a single out wrapper child then it forms = the method return type,=20 if there is an out wrapper child with a local name of =93return=94 then it = forms the method return=20 type, otherwise the return type is void.=20 >From section 3.8.2 Method and Parameters of JAX-RPC 2.0 specification: --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://nagoya.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira