Return-Path: Mailing-List: contact axis-user-help@xml.apache.org; run by ezmlm Delivered-To: mailing list axis-user@xml.apache.org Received: (qmail 52317 invoked from network); 22 Feb 2002 13:08:02 -0000 Received: from e21.nc.us.ibm.com (32.97.136.227) by daedalus.apache.org with SMTP; 22 Feb 2002 13:08:02 -0000 Received: from southrelay02.raleigh.ibm.com (southrelay02.raleigh.us.ibm.com [9.37.3.209]) by e21.nc.us.ibm.com (8.9.3/8.9.3) with ESMTP id HAA15480 for ; Fri, 22 Feb 2002 07:02:58 -0600 Received: from d04nms23.raleigh.ibm.com (d04nms23.raleigh.ibm.com [9.27.5.163]) by southrelay02.raleigh.ibm.com (8.11.1m3/NCO/VER6.00) with ESMTP id g1MD81r80082 for ; Fri, 22 Feb 2002 08:08:01 -0500 Importance: Normal Subject: Re: AW: Problem with message part names in WSDL To: axis-user@xml.apache.org X-Mailer: Lotus Notes Release 5.0.7 March 21, 2001 Message-ID: From: "Russell Butek" Date: Fri, 22 Feb 2002 07:07:55 -0600 X-MIMETrack: Serialize by Router on D04NMS23/04/M/IBM(Release 5.0.8 |June 18, 2001) at 02/22/2002 08:08:01 AM MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Werner, your guess is correct. WSDL2Java is functioning as designed. Russell Butek butek@us.ibm.com Dittmann Werner on 02/22/2002 01:51:48= AM Please respond to axis-user@xml.apache.org To: "'axis-user@xml.apache.org'" cc: Subject: AW: Problem with message part names in WSDL Looking at that it seems that axis interprets the part "Key" as an in-out parameter (because it has the same name and type in both messages). Renaming it causes axis to interpret it as a "real" return value. That's just my guess. Werner > -----Urspr=FCngliche Nachricht----- > Von: Christoph Hartmann [mailto:chartmann@e2e.ch] > Gesendet: Donnerstag, 21. Februar 2002 20:01 > An: axis-user@xml.apache.org > Betreff: Problem with message part names in WSDL > > > I use AXIS nightly build 2002-02-21 / JDK 1.3.1 > > > I have the following definitions in my WSDL file (truncated): > > > > > > > > > > > > > > > > > > > > > After creating the Java classes with WSDL2Java the resulting > EmployeePortType.java file has a wrong signature for the > updateDataObject() method (returns void instead of EmployeeKey, > wrong type of the "key" parameter): > > public interface EmployeePortType extends java.rmi.Remote { > public void updateDataObject(EmployeeKeyHolder key, > Employee data) throws java.rmi.RemoteException, > FaultDetailMessage; > } > > If I change the part name from "Key" to "Key1" in the > UpdateDataObjectResponse message, the resulting > EmployeePortType.java file looks fine: > > public interface EmployeePortType extends java.rmi.Remote { > public EmployeeKey updateDataObject(EmployeeKey key, > Employee data) throws java.rmi.RemoteException, > FaultDetailMessage; > } > > Do I something wrong/stupid when I use the same part name both > in the input and output message of a single operation? > > > > Thanx, > hardy > =