Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A2FAB9D8C for ; Sat, 24 Mar 2012 19:20:46 +0000 (UTC) Received: (qmail 78170 invoked by uid 500); 24 Mar 2012 19:20:46 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 78146 invoked by uid 500); 24 Mar 2012 19:20:46 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 78137 invoked by uid 99); 24 Mar 2012 19:20:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Mar 2012 19:20:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Mar 2012 19:20:45 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 41C83344ED4 for ; Sat, 24 Mar 2012 19:20:25 +0000 (UTC) Date: Sat, 24 Mar 2012 19:20:25 +0000 (UTC) From: =?utf-8?Q?Bj=C3=B6rn_=28Updated=29_=28JIRA=29?= To: issues@cxf.apache.org Message-ID: <550734086.13293.1332616825270.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <698381365.13257.1332615145574.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CXF-4201) Error if two methods start with a parameter of the same name MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-4201?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Bj=C3=B6rn updated CXF-4201: ----------------------- Attachment: cxfbug.zip unzip, then with "mvn compile jetty:run" you can start the webservice on ht= tp://localhost:8080/cxfbug/services WSDL at http://localhost:8080/cxfbug/services/dummy?wsdl =20 > Error if two methods start with a parameter of the same name > ------------------------------------------------------------ > > Key: CXF-4201 > URL: https://issues.apache.org/jira/browse/CXF-4201 > Project: CXF > Issue Type: Bug > Components: JAX-WS Runtime > Affects Versions: 2.5.2 > Environment: Java 6, Jetty, Java 5, Glassfish 2 > Reporter: Bj=C3=B6rn > Labels: jax-ws, > Attachments: cxfbug.zip > > > I have two methods in my webservice that start with the same parameter:= =20 > @WebService(targetNamespace =3D "http://dummy/", name =3D "Dummy") > @SOAPBinding(parameterStyle =3D SOAPBinding.ParameterStyle.BARE) > public interface Dummy { > @WebMethod > public void method( > @WebParam(partName =3D "badParam", name =3D "badParam", targetNam= espace =3D "http://dummy/") > java.lang.String badParam, > @WebParam(partName =3D "anotherParam", name =3D "anotherParam", t= argetNamespace =3D "http://dummy/") > java.math.BigInteger anotherParam > =20 > =20 > ); > @WebMethod > public void anotherMethod( > @WebParam(partName =3D "badParam", name =3D "badParam", targetNam= espace =3D "http://dummy/") > java.lang.String badParam > ); > } > This causes a javax.xml.ws.soap.SOAPFaultException: Message part {http://= dummy/}anotherParam was not recognized. (Does it exist in service WSDL?) > If I try to call those methods (I call them with the default test client = generated with the Maven plugin). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira