Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 13153 invoked from network); 6 Aug 2007 13:54:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Aug 2007 13:54:36 -0000 Received: (qmail 7806 invoked by uid 500); 6 Aug 2007 13:54:32 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 7761 invoked by uid 500); 6 Aug 2007 13:54:32 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 7750 invoked by uid 99); 6 Aug 2007 13:54:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2007 06:54:32 -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; Mon, 06 Aug 2007 13:54:12 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 996577141F7 for ; Mon, 6 Aug 2007 06:53:59 -0700 (PDT) Message-ID: <15181850.1186408439613.JavaMail.jira@brutus> Date: Mon, 6 Aug 2007 06:53:59 -0700 (PDT) From: "Davanum Srinivas (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Resolved: (AXIS2-2952) wsdl2java -d jaxrbi does not corretly handle namespace "http://www.w3.org/XML/1998/namespace" In-Reply-To: <1042949.1184238785357.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/AXIS2-2952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Davanum Srinivas resolved AXIS2-2952. ------------------------------------- Resolution: Fixed > wsdl2java -d jaxrbi does not corretly handle namespace "http://www.w3.org/XML/1998/namespace" > --------------------------------------------------------------------------------------------- > > Key: AXIS2-2952 > URL: https://issues.apache.org/jira/browse/AXIS2-2952 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: databinding > Affects Versions: 1.2 > Environment: All platforms > Reporter: Denis Rachal > Assignee: Amila Chinthaka Suriarachchi > Attachments: test.wsdl > > > wsdl2java -d jaxrbi does not corretly handle namespace "http://www.w3.org/XML/1998/namespace" > When using the namespace "http://www.w3.org/XML/1998/namespace" within an XSD, wsdl2java with binding jaxbri puts the > generated code in the incorrect package. > I have an XSD that uses "xml:lang", defined in the namespace "http://www.w3.org/XML/1998/namespace". Although you should not > need to declare the namespace prefix "xml" the XSD in this example does so (see http://www.w3.org/XML/1998/namespace for > details). The WSDL2java will fail if it is not declared for this use case. > If the namespace "http://www.w3.org/XML/1998/namespace" is explicitely declared and included, then the JAXB classes are put > into the package "org.w3.www.xml._1998.namespace" instead of the package for the target namespace of the XSD. In this example > "http://schemas.xmlsoap.org/ws/2004/09/enumeration", which should be package "org.xmlsoap.schemas.ws._2004._09.enumeration". > While this may seem to just be a bit of an annoyance, it can actually produce errors in some cases. I have two different XSDs > that use "xml:lang" and include the "http://www.w3.org/XML/1998/namespace" namespace. In the case where both XSDs are > referenced by a single WSDL one package is overwritten by the other during the "wsdl2java" process and you end up with > classes in the wrong namespace. package-info.java gets overwritten when processing the second XSD. Classes generated from the > first XSD end up with the wrong package-info.java file. > Even stranger is that if I have the two XSDs consumed by a single WSDL, the overwrite does not always occur. Sometimes the > classes end up in the correct package for one of the XSDs. Simply by moving the schemas and WSDLs to a new directory and > calling wsdl2java again may produce different results. Therefore I have only documented this case as best as I can here. > WSDL file for reproducing this bug is attached: > > targetNamespace="http://schemas.xmlsoap.org/ws/2004/07/bug/test" > xmlns:tns="http://schemas.xmlsoap.org/ws/2004/07/bug/test" > xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" > xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration" > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:wsoap12="http://schemas.xmlsoap.org/wsdl/soap12/"> > > namespace="http://schemas.xmlsoap.org/ws/2004/09/enumeration" > location="http://schemas.xmlsoap.org/ws/2004/09/enumeration/enumeration.wsdl" /> > > > > namespace="http://schemas.xmlsoap.org/ws/2004/09/enumeration" > schemaLocation="http://schemas.xmlsoap.org/ws/2004/09/enumeration/enumeration.xsd" /> > > > > transport="http://schemas.xmlsoap.org/soap/http" style="document" /> > > > soapAction="http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate" /> > > > > > message="wsen:EnumerateResponseMessage" parts="Body" use="literal" /> > > > > > > Test Service > > > > > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org