Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 35800 invoked from network); 20 Feb 2008 19:04:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Feb 2008 19:04:29 -0000 Received: (qmail 18215 invoked by uid 500); 20 Feb 2008 19:04:23 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 18201 invoked by uid 500); 20 Feb 2008 19:04:23 -0000 Mailing-List: contact cxf-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-issues@incubator.apache.org Received: (qmail 18188 invoked by uid 99); 20 Feb 2008 19:04:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Feb 2008 11:04:23 -0800 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Feb 2008 19:03:37 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5FA28234C049 for ; Wed, 20 Feb 2008 11:03:43 -0800 (PST) Message-ID: <1046552255.1203534223390.JavaMail.jira@brutus> Date: Wed, 20 Feb 2008 11:03:43 -0800 (PST) From: "Daniel Kulp (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Resolved: (CXF-907) WSDLToJava fails to generate parameter for request header In-Reply-To: <23544582.1186958863147.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Kulp resolved CXF-907. ----------------------------- Resolution: Fixed Fix Version/s: (was: 2.1) 2.0.5 > WSDLToJava fails to generate parameter for request header > --------------------------------------------------------- > > Key: CXF-907 > URL: https://issues.apache.org/jira/browse/CXF-907 > Project: CXF > Issue Type: Bug > Components: Tooling > Affects Versions: 2.1 > Environment: Windows XP > Reporter: Manuel Bleichenbacher > Assignee: Daniel Kulp > Fix For: 2.0.5 > > Attachments: gepir.wsdl > > > I'm writing a client for a web service that uses both request and response header data in each operation. WSDLToJava nicely generates an output parameter for the response header data but misses to do the same for the request header data. > So instead of: > @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) > @WebMethod(action = "http://www.gepir.org/GetPartyByGTIN", operationName = "GetPartyByGTIN") > public void getPartyByGTIN( > @WebParam(targetNamespace = "http://www.gepir.org/", partName = "partyGtin", name = "GetPartyByGTIN") > org.gepir.GetPartyByGTIN partyGtin, > @WebParam(targetNamespace = "http://www.gepir.org/", header = true, partName = "gepirRequestHeader", name = "gepirRequestHeader") > org.gepir.GepirRequestHeader gepirRequestHeader, > @WebParam(targetNamespace = "http://www.gepir.org/", mode = Mode.OUT, partName = "GetPartyByGTINResult", name = "gepirParty") > javax.xml.ws.Holder getPartyByGTINResult, > @WebParam(targetNamespace = "http://www.gepir.org/", header = true, mode = Mode.OUT, partName = "gepirResponseHeader", name = "gepirResponseHeader") > javax.xml.ws.Holder gepirResponseHeader > ); > it just generates (the second parameter is missing): > @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) > @WebMethod(action = "http://www.gepir.org/GetPartyByGTIN", operationName = "GetPartyByGTIN") > public void getPartyByGTIN( > @WebParam(targetNamespace = "http://www.gepir.org/", partName = "partyGtin", name = "GetPartyByGTIN") > org.gepir.GetPartyByGTIN partyGtin, > @WebParam(targetNamespace = "http://www.gepir.org/", mode = Mode.OUT, partName = "GetPartyByGTINResult", name = "gepirParty") > javax.xml.ws.Holder getPartyByGTINResult, > @WebParam(targetNamespace = "http://www.gepir.org/", header = true, mode = Mode.OUT, partName = "gepirResponseHeader", name = "gepirResponseHeader") > javax.xml.ws.Holder gepirResponseHeader > ); > This applies to all operations/methods. > I've added the missing parameter manually for the moment. Then the client nicely works. > The WSDL file can be found at http://gepir.gs1.ch/v3/router.asmx?wsdl. But you have to delete the routetHttpGet and routerHttpPost ports and bindings before using it. They don't seem to be valid. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.