Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 1023 invoked from network); 16 Apr 2010 05:17:52 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Apr 2010 05:17:52 -0000 Received: (qmail 73002 invoked by uid 500); 16 Apr 2010 05:17:52 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 72952 invoked by uid 500); 16 Apr 2010 05:17:52 -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 72936 invoked by uid 99); 16 Apr 2010 05:17:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Apr 2010 05:17:52 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Apr 2010 05:17:49 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3G5HRUm002615 for ; Fri, 16 Apr 2010 01:17:27 -0400 (EDT) Message-ID: <20397504.3131271395047558.JavaMail.jira@thor> Date: Fri, 16 Apr 2010 01:17:27 -0400 (EDT) From: "John Friar (JIRA)" To: issues@cxf.apache.org Subject: [jira] Updated: (CXF-2766) @Webparam name not honoured In-Reply-To: <66923.3101271394925335.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-2766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Friar updated CXF-2766: ---------------------------- Description: I have imported a wsdl from a service provider. A snippet of the generated webservice interface is: @WebResult(name = "return-response", targetNamespace = "http://sp.com/service.wsdl/types", partName = "returnResponse") @WebMethod(action = "http://sp.com/doReturn") public ReturnResponseType doReturn( @WebParam(partName = "returnTrx", name = "return-request", targetNamespace = "http://sp.com/service.wsdl/types") ReturnRequestType returnTrx ) throws ErrorMessages; However, the soap message that is created does not honour the name of the @WebParam (return-request) and instead uses doReturn as the name of the method and parameter. If any other name is used then behaviour is as expected. I cannot find anything in the spec. that specifies that 'return' should not be used at the start of a @WebParam name but that appears to be the issue. Thanks, John was: I have imported a wsdl from a service provider. A snippet of the generated webservice interface is: @WebResult(name = "return-response", targetNamespace = "http://spcom/service.wsdl/types", partName = "returnResponse") @WebMethod(action = "http://methcheck.com/MethCheckWS/doReturn") public ReturnResponseType doReturn( @WebParam(partName = "returnTrx", name = "return-request", targetNamespace = "http://sp.com/service.wsdl/types") ReturnRequestType returnTrx ) throws ErrorMessages; However, the soap message that is created does not honour the name of the @WebParam (return-request) and instead uses doReturn as the name of the method and parameter. If any other name is used then behaviour is as expected. I cannot find anything in the spec. that specifies that 'return' should not be used at the start of a @WebParam name but that appears to be the issue. Thanks, John > @Webparam name not honoured > --------------------------- > > Key: CXF-2766 > URL: https://issues.apache.org/jira/browse/CXF-2766 > Project: CXF > Issue Type: Bug > Components: JAXB Databinding > Affects Versions: 2.2.6, 2.2.7 > Environment: Mac OS-X, Windows XP, Spring Configured CXF Client > Reporter: John Friar > > I have imported a wsdl from a service provider. A snippet of the generated webservice interface is: > @WebResult(name = "return-response", targetNamespace = "http://sp.com/service.wsdl/types", partName = "returnResponse") > @WebMethod(action = "http://sp.com/doReturn") > public ReturnResponseType doReturn( > @WebParam(partName = "returnTrx", name = "return-request", targetNamespace = "http://sp.com/service.wsdl/types") > ReturnRequestType returnTrx > ) throws ErrorMessages; > However, the soap message that is created does not honour the name of the @WebParam (return-request) and instead uses doReturn as the name of the method and parameter. If any other name is used then behaviour is as expected. I cannot find anything in the spec. that specifies that 'return' should not be used at the start of a @WebParam name but that appears to be the issue. > Thanks, > John -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira