Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 35233 invoked from network); 12 Sep 2008 21:03:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Sep 2008 21:03:02 -0000 Received: (qmail 50460 invoked by uid 500); 12 Sep 2008 21:02:43 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 50449 invoked by uid 500); 12 Sep 2008 21:02:43 -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 50425 invoked by uid 99); 12 Sep 2008 21:02:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Sep 2008 14:02:43 -0700 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; Fri, 12 Sep 2008 21:01:42 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5B4B9234C1DD for ; Fri, 12 Sep 2008 14:01:44 -0700 (PDT) Message-ID: <1854273509.1221253304372.JavaMail.jira@brutus> Date: Fri, 12 Sep 2008 14:01:44 -0700 (PDT) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Subject: [jira] Updated: (CXF-1793) WSDL2Java reports Non unique body parts if the first 14 characters of message parts are identical In-Reply-To: <990378238.1221138345631.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-1793?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Kulp updated CXF-1793: ----------------------------- Attachment: cxf1793_works.wsdl I cannot reproduce this. I've attached a wsdl that I used from the info in the first message. I had to create a schema for the various elements since you didn't provide any schema stuff. I ran this with 2.1.1, 2.1.2, and the latest 2.1.3 and 2.2 snapshots and it just works without error. I'll probably need a full example (zip file attachment is preferred so jira doesn't mangle things). > WSDL2Java reports Non unique body parts if the first 14 characters of message parts are identical > ------------------------------------------------------------------------------------------------- > > Key: CXF-1793 > URL: https://issues.apache.org/jira/browse/CXF-1793 > Project: CXF > Issue Type: Bug > Components: Tooling > Affects Versions: 2.1.2 > Environment: Windows XP, Java 1.5 > Reporter: Dag Framstad > Attachments: cxf1793_works.wsdl > > > In my WSDL I have 2 services that have similar names. > If the first 14 characters in the message part name are identical WSDL2Java reports (from ant): > generate: > [java] Loading FrontEnd jaxws ... > [java] Loading DataBinding jaxb ... > [java] wsdl2java -b c:\ADN\adnfond/src/main/resources/com/edb/adnfond/transport/ws/calendar.xjb.w2j -impl -verbose -validate -c > atalog c:\ADN\adnfond/src/main/resources/com/edb/adnfond/transport/ws/misc -d c:\ADN\adnfond/src/main/generated c:\ADN\adnfond/src/m > ain/resources/com/edb/adnfond/transport/ws/misc/Misc_v10.wsdl > [java] wsdl2java - Apache CXF 2.1.2 > [java] > [java] > [java] WSDLToJava Error: Non unique body parts, operation [ getSalesOfficeId ] and operation [ getSalesPersonId ] have the sam > e body block {http://edb.com/ws/WSCommon_v21}AutHeader > [java] > [java] > [java] > [java] org.apache.cxf.tools.common.ToolException: Non unique body parts, operation [ getSalesOfficeId ] and operation [ getSal > esPersonId ] have the same body block {http://edb.com/ws/WSCommon_v21}AutHeader > [java] > [java] > [java] at org.apache.cxf.tools.validator.internal.WSDL11Validator.isValid(WSDL11Validator.java:128) > [java] at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.validate(JAXWSDefinitionBuilder.java:200 > ) > [java] at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.validate(JAXWSDefinitionBuilder.java:62) > [java] at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:132) > [java] at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:232) > [java] at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:83) > [java] at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:103) > [java] at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:173) > Example WSDL: > > targetNamespace="http://www.edb.com/adnfond/transport/ws/misc/" > xmlns:misc="http://www.edb.com/adnfond/transport/ws/misc/misc_v10" > xmlns:m="http://www.edb.com/adnfond/transport/ws/misc/" > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:edb="http://edb.com/ws/WSCommon_v21"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > This is how I use wsdl2java: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > If the specs says that message part names can't be longer than 14 characters then please ignore this issue. > Version 2.0.4 has this problem too, and other versions too I imagine, but I have only tested on 2.0.4 and 2.1.2. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.