Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 70459 invoked from network); 25 Oct 2004 17:48:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 25 Oct 2004 17:48:55 -0000 Received: (qmail 74954 invoked by uid 500); 25 Oct 2004 17:48:49 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 74890 invoked by uid 500); 25 Oct 2004 17:48:48 -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 74759 invoked by uid 99); 25 Oct 2004 17:48:43 -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; Mon, 25 Oct 2004 10:48:43 -0700 Received: (qmail 16830 invoked from network); 25 Oct 2004 17:50:46 -0000 Received: from localhost (HELO nagoya) (127.0.0.1) by nagoya.betaversion.org with SMTP; 25 Oct 2004 17:50:46 -0000 Message-ID: <898597280.1098726646178.JavaMail.apache@nagoya> Date: Mon, 25 Oct 2004 10:50:46 -0700 (PDT) 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://issues.apache.org/jira/browse/AXIS-1619?page=3Dhistory ] S=E9bastien Tardif updated AXIS-1619: ----------------------------------- Attachment: docHarbor.wsdl > Wsdl2Java do not respect MIME type for "wrapped" document/literal inout = parameters. > -------------------------------------------------------------------------= ----------- > > Key: AXIS-1619 > URL: http://issues.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: docHarbor.wsdl > > 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://issues.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