You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ax...@ws.apache.org on 2004/08/04 04:58:20 UTC
[jira] Closed: (AXIS-1347) WSDL2Java generates wrong JavaClass Name causing DuplicateFileException
Message:
The following issue has been closed.
Resolver: Eric Friedman
Date: Tue, 3 Aug 2004 7:57 PM
Applied contributed patch. Did NOT add test case as the functional tests all fail on OS X and so I could not verify the test. Relied on code inspection instead.
---------------------------------------------------------------------
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: Closed
Priority: Major
Resolution: FIXED
Project: Axis
Components:
WSDL processing
Fix Fors:
current (nightly)
Versions:
1.2 Beta
Assignee: Eric Friedman
Reporter: Oliver Adler
Created: Wed, 5 May 2004 6:42 AM
Updated: Tue, 3 Aug 2004 7:57 PM
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