Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 88E4E200C54 for ; Tue, 28 Mar 2017 20:19:47 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 877BD160B6B; Tue, 28 Mar 2017 18:19:47 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CAB71160B89 for ; Tue, 28 Mar 2017 20:19:46 +0200 (CEST) Received: (qmail 19713 invoked by uid 500); 28 Mar 2017 18:19:45 -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 19659 invoked by uid 99); 28 Mar 2017 18:19:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Mar 2017 18:19:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id E27D81A00BB for ; Tue, 28 Mar 2017 18:19:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id pjTZZ_3z8QCB for ; Tue, 28 Mar 2017 18:19:44 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id CD5915F29A for ; Tue, 28 Mar 2017 18:19:43 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 3DCEFE06BA for ; Tue, 28 Mar 2017 18:19:43 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id E1F5C25CEA for ; Tue, 28 Mar 2017 18:19:41 +0000 (UTC) Date: Tue, 28 Mar 2017 18:19:41 +0000 (UTC) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CXF-2428) wsdl2java tool always generates types, even, for example, when client stubs are required only (-client argument) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 28 Mar 2017 18:19:47 -0000 [ https://issues.apache.org/jira/browse/CXF-2428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Kulp resolved CXF-2428. ------------------------------ Resolution: Won't Fix Fix Version/s: Invalid xmlbeans databinding has been removed in 3.2 as xmlbeans is no longer supported. No need to fix. > wsdl2java tool always generates types, even, for example, when client stubs are required only (-client argument) > ---------------------------------------------------------------------------------------------------------------- > > Key: CXF-2428 > URL: https://issues.apache.org/jira/browse/CXF-2428 > Project: CXF > Issue Type: Bug > Components: Tooling > Affects Versions: 2.1.6, 2.2.3 > Environment: the issue is not environment related > Reporter: Michael Klimiuk > Fix For: Invalid > > > SCENARIO: > The following ant task is executed to generate client artifacts: > > > > > > > > > > > > ACTUAL RESULT: > Generated artifacts include data types (XmlObjects generated by XmlBeans during the WSDLToJava process). > EXPECTED RESULT: > Generated artifacts must not include data types. Furthermore, there must be an additional argument to specify whether to generate types or not. > ANALYSIS: > Start point is the following class: org.apache.cxf.tools.wsdlto.WSDLToJavaContainer > WSDLToJavaContainer.generateTypes() method uses the WSDLToJavaContainer.passthrough() method which decides whether to generate types or not. > Please have a look at this method. It's logic is correct, but ToolConstants used there have no common with command line arguments. In this issue the most important are CFG_GEN_TYPES and CFG_GEN_CLIENT - I cannot specify these from the command line. -- This message was sent by Atlassian JIRA (v6.3.15#6346)