Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 64906 invoked from network); 25 Sep 2007 00:33:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Sep 2007 00:33:14 -0000 Received: (qmail 35692 invoked by uid 500); 25 Sep 2007 00:33:04 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 35622 invoked by uid 500); 25 Sep 2007 00:33:04 -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 35613 invoked by uid 99); 25 Sep 2007 00:33:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2007 17:33:04 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Sep 2007 00:35:25 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BFB1271417D for ; Mon, 24 Sep 2007 17:32:50 -0700 (PDT) Message-ID: <13206072.1190680370778.JavaMail.jira@brutus> Date: Mon, 24 Sep 2007 17:32:50 -0700 (PDT) From: "Ryan Moquin (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Commented: (CXF-1056) Add a constructor to generated Service class for setting only WSDL location In-Reply-To: <21180588.1190395490570.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-1056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12530024 ] Ryan Moquin commented on CXF-1056: ---------------------------------- Didn't realize the spec covered those sorts of things, I always thought they kept from those sorts of details. > Add a constructor to generated Service class for setting only WSDL location > --------------------------------------------------------------------------- > > Key: CXF-1056 > URL: https://issues.apache.org/jira/browse/CXF-1056 > Project: CXF > Issue Type: Improvement > Components: Tooling > Affects Versions: 2.0.1 > Environment: Windows XP, Maven 2.0.6 > Reporter: Ryan Moquin > Priority: Minor > > I noticed in the generated service classes that there is only a constructor which accepts no params and therefore uses the default WSDL and QName or one that you can pass in both and override. When I have a WSDL on the file system, most of the time I want to load it off the classpath because I'll bundle it with my jar. When the wsdl is on the filepath, wsdl2java will generate a hardcoded filename to the WSDL, which isn't very good for portability reasons. It would be nice if there was a constructor to ONLY pass in a WSDL URL but use the default QName. I usually have to define the QName myself in the class creating the service class so that I am able to use the constructor to override the WSDL. > For example, part of a generated service class: > public InventoryService(URL wsdlLocation, QName serviceName) { > super(wsdlLocation, serviceName); > } > public InventoryService() { > super(WSDL_LOCATION, SERVICE); > } > Would be nice to have: > public InventoryService(URL wsdlLocation, QName serviceName) { > super(wsdlLocation, serviceName); > } > public InventoryService(URL wsdlLocation) { > super(wsdlLocation, SERVICE); > } > public InventoryService() { > super(WSDL_LOCATION, SERVICE); > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.