Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 89703 invoked from network); 16 Nov 2004 21:18:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 16 Nov 2004 21:18:32 -0000 Received: (qmail 67464 invoked by uid 500); 16 Nov 2004 21:18:30 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 67432 invoked by uid 500); 16 Nov 2004 21:18:29 -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 67422 invoked by uid 99); 16 Nov 2004 21:18:29 -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; Tue, 16 Nov 2004 13:18:29 -0800 Received: (qmail 17591 invoked from network); 16 Nov 2004 21:18:27 -0000 Received: from localhost (HELO nagoya) (127.0.0.1) by nagoya.betaversion.org with SMTP; 16 Nov 2004 21:18:27 -0000 Message-ID: <220960766.1100639907584.JavaMail.apache@nagoya> Date: Tue, 16 Nov 2004 13:18:27 -0800 (PST) From: =?ISO646-US?Q?S=3Fbastien_Tardif_=28JIRA=29?= To: axis-dev@ws.apache.org Subject: [jira] Updated: (AXIS-1619) Wsdl2Java do not respect MIME type for "wrapped" document/literal inout parameters. In-Reply-To: <394378065.1098726526078.JavaMail.apache@nagoya> 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 [ http://nagoya.apache.org/jira/browse/AXIS-1619?page=3Dhistory ] S=E9bastien Tardif updated AXIS-1619: ----------------------------------- Attachment: diff.txt The patch following the "procedure for submitting patches". All test suite = work. > Wsdl2Java do not respect MIME type for "wrapped" document/literal inout = parameters. > -------------------------------------------------------------------------= ----------- > > Key: AXIS-1619 > URL: http://nagoya.apache.org/jira/browse/AXIS-1619 > Project: Axis > Type: Bug > Components: WSDL processing > Versions: 1.2RC1 > Environment: Axis/CVS 9/23/2004 > Reporter: S=E9bastien Tardif > Attachments: diff.txt, docHarbor.wsdl, docHarbor.wsdl, docHarbor.xml > > Defect happen when WSDL has those: > - wrapped document/literal style > - use Mime type for implementing Soap with Attachment (SwA)=20 > - has operation that need more that one output parameters > - you want the operation having a "out" parameter like String in "String = myOperation(int myInt, DataHandler mySwAttachment) > By default if you don=92t do anything extra in the WSDL, the generated Ja= va code will will look like this: =93void myOperation(int myInt, StringHold= er myString, DataHandler mySwAttachment)=94 > So to have the return type as String you have to specify in the WSDL that= mySwAttachment is an inout parameter. This can be done by including mySwAt= tachment in both the input and output definition.=20 > When using RPC/Literal style this is done in the message section like: > > =09=09 > =09=09 > > > =09=09 > =09=09 > > As you can see mySwAttachment is duplicated in the input and output. So t= he Java method will be generated like we want: > "String myOperation(int myInt, DataHandler mySwAttachment)=94 > But if you use wrapped document/literal style you must only have one part= by message element so you need to move the parts to a XML Schema complex t= ype. > But when you do that and you duplicate mySwAttachment in the schema/type = for the list of input and output, you got this when generate the Java metho= d: > =20 > =93String myOperation(int myInt, ByteArrayHolder mySwAttachment)=94 > Which mean that Axis recognized the inout parameter but use the wrong typ= e. The type was supposed to be DataHandlerHolder instead of ByteArrayHolder= . > I have attached a real world WSDL, the problem is with operation =93getDo= cumentAsAttachment=94 --=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