Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 27334 invoked from network); 1 Nov 2009 14:21:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Nov 2009 14:21:22 -0000 Received: (qmail 44901 invoked by uid 500); 1 Nov 2009 14:21:22 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 44874 invoked by uid 500); 1 Nov 2009 14:21:22 -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 44864 invoked by uid 99); 1 Nov 2009 14:21:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Nov 2009 14:21:22 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Nov 2009 14:21:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 693FF234C1F2 for ; Sun, 1 Nov 2009 06:20:59 -0800 (PST) Message-ID: <318855324.1257085259417.JavaMail.jira@brutus> Date: Sun, 1 Nov 2009 14:20:59 +0000 (UTC) From: "Benson Margulies (JIRA)" To: issues@cxf.apache.org Subject: [jira] Resolved: (CXF-2131) WSDL generation In-Reply-To: <1551611428.1237871032111.JavaMail.jira@brutus> 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-2131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benson Margulies resolved CXF-2131. ----------------------------------- Resolution: Invalid This is somewhere between 'works as designed' and 'talk to JAXB'. JAXB is making these decisions. I believe that it has customization options you could use to trim. > WSDL generation > --------------- > > Key: CXF-2131 > URL: https://issues.apache.org/jira/browse/CXF-2131 > Project: CXF > Issue Type: Bug > Components: JAX-WS Runtime > Affects Versions: 2.1.4 > Environment: JBoss, Windows XP > Reporter: Yogesh > > I am using code first approach to develop webservices. When I see generated WSDL after hitting the service URL + '?wsdl', I see that all the type declarations done in XSD are getting included in WSDL/Types element. Though I am just using 2 or 3 elements of XSD, it includes all the elements. I am using JAXB to generate value objects from XSD. Is there any way to restrict the elements to be include in WSDL/types to just objects used in Webservices and not whole XSD. > The problem could be worse If I have 100s of webservices and all of them are using same XSD. All 100 autogenerated WSDL file will include XSD declarations of all the elements which will make WSDL bulkier, though each webservice is just using one or two elements. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.