axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [jira] Created: (AXIS-1347) WSDL2Java generates wrong JavaClass Name causing DuplicateFileException
Date Wed, 05 May 2004 13:43:59 GMT
Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1347

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1347
    Summary: WSDL2Java generates wrong JavaClass Name causing DuplicateFileException
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             1.2 Beta

   Assignee: 
   Reporter: Oliver Adler

    Created: Wed, 5 May 2004 6:42 AM
    Updated: Wed, 5 May 2004 6:42 AM
Environment: Eclipse; Axis 1.2Beta WinXP

Description:
Processing the following wsdl causes WSDL2Java to throw a DuplicateFileException. This is
caused by a wrong determinition for the java filename for the type "fooType".

WSDL:
<?xml version="1.0" encoding="UTF-8"?>
<definitions
    name="ABC"
    targetNamespace="http://foo.com/services/abc"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:service="http://foo.com/services/abc"
    xmlns:types="http://foo.com/types/abc"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <!--
    <import location="fooTypes.xsd" namespace="http://foo.com/types/abc"/>
    -->
    <types>
    <xsd:schema  targetNamespace="http://foo.com/types/abc" 
			xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
			xmlns:types="http://foo.com/types/abc">
	<xsd:simpleType name="fooEnum">
		<xsd:restriction base="xsd:normalizedString">
			<xsd:enumeration value="A"/>
			<xsd:enumeration value="B"/>
			<xsd:enumeration value="C"/>
			<xsd:enumeration value="D"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:complexType name="fooType">
		<xsd:simpleContent>
			<xsd:extension base="types:fooEnum"/>
		</xsd:simpleContent>
	</xsd:complexType>
</xsd:schema>
    </types>
    <message name="MSG_IN">
        <part name="in" type="types:fooType"/>
    </message>
    <message name="MSG_OUT">
        <part name="out" type="xsd:string"/>
    </message>
    <portType name="ABC_PORT">
        <operation name="request">
            <input message="service:MSG_IN"/>
            <output message="service:MSG_OUT"/>
        </operation>
    </portType>
    <binding name="ABC_BINDING" type="service:ABC_PORT">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <operation name="request">
            <soap:operation/>
            <input>
                <soap:body use="literal"/>
            </input>
            <output>
                <soap:body use="literal"/>
            </output>
        </operation>
    </binding>
    <service name="ABC">
        <port binding="service:ABC_BINDING" name="ABC">
            <soap:address location="http://localhost:8080/axis/services/ABC"/>
        </port>
    </service>
</definitions>


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message