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 5C0D7200D5C for ; Fri, 15 Dec 2017 14:25:06 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5AB3B160C14; Fri, 15 Dec 2017 13:25:06 +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 A0F09160C06 for ; Fri, 15 Dec 2017 14:25:05 +0100 (CET) Received: (qmail 52033 invoked by uid 500); 15 Dec 2017 13:25:04 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 52022 invoked by uid 99); 15 Dec 2017 13:25:04 -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; Fri, 15 Dec 2017 13:25:04 +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 02C311A09CC for ; Fri, 15 Dec 2017 13:25:04 +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-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id sWdfIG9fUEfk for ; Fri, 15 Dec 2017 13:25:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 2A4CE5F250 for ; Fri, 15 Dec 2017 13:25:01 +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 67F30E099C for ; Fri, 15 Dec 2017 13:25:00 +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 11F1C273FB for ; Fri, 15 Dec 2017 13:25:00 +0000 (UTC) Date: Fri, 15 Dec 2017 13:25:00 +0000 (UTC) From: "robert lazarski (JIRA)" To: java-dev@axis.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AXIS2-5903) WSDL2Java bug when same named element under different name space MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 15 Dec 2017 13:25:06 -0000 [ https://issues.apache.org/jira/browse/AXIS2-5903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16292534#comment-16292534 ] robert lazarski commented on AXIS2-5903: ---------------------------------------- When attaching files like error.txt , please use the latest 1.7.7 version of axis2 to run wsdl2java. When using 1.7.7 I see lots of errors like these: [WARN] No schemaLocation for import of http://schemas.ipc.adm.br/efrete/pef/objects; compilation may fail [WARN] No schemaLocation for import of http://schemas.ipc.adm.br/efrete/objects; compilation may fail Also note I see several Jira issues created that are very similar to this one, that seemed to be fixed on the user side. See , AXIS2-5595 and AXIS2-5606. > WSDL2Java bug when same named element under different name space > ---------------------------------------------------------------- > > Key: AXIS2-5903 > URL: https://issues.apache.org/jira/browse/AXIS2-5903 > Project: Axis2 > Issue Type: Bug > Components: wsdl > Affects Versions: 1.7.7 > Environment: Windows 7 64-bits. > Reporter: Bruno Ramos > Attachments: PefService.wsdl, error.txt > > > Hi, > I am using WSDL2Java to generate my java classes but I am having a problem with a WSDL that contains the same named element under different namespaces. When I try I get the error "The referenced element ... was not found". > I use wsdt2java as: wsdt2java.bat -o c:/teste -uri c:/teste/PefService.wsdl -suppress-prefixes > The same error appears in the 3 versions I try: 1.5.2, 1.6.2 and 1.7.7. > The exactly error I get from this wsdl is: "The referenced element '{http://schemas.ipc.adm.br/efrete/pef/AdicionarViagem}Viagens' was not found!". The complete error is attached. > The WSDL to replicate the error is attached, and also can be obtained here: https://dev.efrete.com/Services/PefService.asmx?wsdl > Any help is appreciated. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org