users@jax-rpc.java.net

creating type with same name but from different namespaces

From: Tevoi Andrea <tevoi_at_CAD.IT>
Date: Wed, 26 Jun 2002 18:04:45 +0200

Hi,

I try to create java classes from a Wsdl using xrpcc tool. In Wsdl document I use types with same name imported from different namespaces.

this is an example:

<wsdl:types>
        <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.cadit.it/software/webservices/schema/this"
        xmlns:servicexsd01="http://www.cadit.it/software/schema/servizi/AF/A2GWGI1_01"
        xmlns:servicexsd02="http://www.cadit.it/software/schema/servizi/AF/A2GWGI1_02"
        xmlns:systemxsd="http://www.cadit.it/software/schema/servizi/system">
                <xsd:complexType name="message01">
                                <xsd:sequence>
                                        <xsd:element name="system" type="systemxsd:SYSTEM"/>
                                        <xsd:element name="input" type="servicexsd01:IN"/>
                                </xsd:sequence>
                        </xsd:complexType>
                        <xsd:complexType name="message02">
                                <xsd:sequence>
                                        <xsd:element name="system" type="systemxsd:SYSTEM"/>
                                        <xsd:element name="input" type="servicexsd02:IN"/>
                                </xsd:sequence>
                        </xsd:complexType>
        ...


Now, I distinguish IN types with prefixes servicexsd01 and servicexsd02 which identify different namespaces.
xrpcc gives this error:

error: the following naming conflicts occurred: com.cadit.ws.IN_Type.



thanks in advance,

Andrea Tevoi