Given the two XML schemas:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
elementFormDefault="qualified"
attributeFormDefault="unqualified"
targetNamespace="urn:a"
xmlns:a="urn:a"
xmlns:b="urn:b"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
<xs:import namespace="urn:b" schemaLocation="b.xsd"/>
<xs:complexType name="FooType">
<xs:sequence>
<xs:element name="foo" type="b:FooType"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
and
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
elementFormDefault="qualified"
attributeFormDefault="unqualified"
targetNamespace="urn:b"
xmlns:b="urn:b"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
<xs:complexType name="FooType">
<xs:sequence>
<xs:element name="bar" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
With the binding file:
<binding defaultBindingType="type">
<package>
<name>example.a</name>
<namespace>urn:a</namespace>
</package>
<package>
<name>example.b</name>
<namespace>urn:b</namespace>
</package>
</binding>
I generate the Java source for the two types. The problem I'm having is the
example.a.FooType source file contains a 'import example.b.FooType' statement
which results in a class name collision and a compilation error.
Questions:
1) I'm using 0.9.5.3. Is this import problem fixed in a later version?
2) Is it possible to change the class name via the binding file? I could not
find any reference or examples on indicating a complex type based on its
namespace/local name combination.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user