I'm using this schema

<?xml version="1.0" encoding="UTF-8"?>

<!-- Version 02.000 vom 09.02.2006 -->

<xs:schema

            targetNamespace="http://v02000.types.blmv.tcom.de"

            xmlns:desc="http://desc.v01200.types.blmv.tcom.de"

            xmlns:requ="http://requ.v01200.types.blmv.tcom.de"

            xmlns:requ02000="http://requ.v02000.types.blmv.tcom.de"

            xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"

            xmlns:xs="http://www.w3.org/2001/XMLSchema"

            elementFormDefault="unqualified"

            attributeFormDefault="unqualified"

            version="02.000">

            <xs:import namespace="http://desc.v01200.types.blmv.tcom.de" schemaLocation="ServiceDescriptorV01200.xsd" />

            <xs:import namespace="http://requ.v01200.types.blmv.tcom.de" schemaLocation="RequestTypesV01200.xsd" />

            <xs:import namespace="http://requ.v02000.types.blmv.tcom.de" schemaLocation="RequestTypesV02000.xsd" />

            <xs:element name="BLMVRechercheRequest">

                        <xs:annotation>

                                   <xs:documentation>BL MV Recherche Request V 2.000</xs:documentation>

                        </xs:annotation>

                        <xs:complexType>

                                   <xs:sequence>

                                               <xs:element ref="desc:BlmvRequestDescriptor" />

                                               <xs:choice>

                                                           <xs:element ref="requ02000:RechercheKundeIdentifizierenRequest" />

                                                           <xs:element ref="requ:RechercheKundeDatenRequest" />

                                                           <xs:element ref="requ:RechercheKundeBestandRequest" />

                                                           <xs:element ref="requ:RechercheKundeAuftraegeRequest" />

                                                           <xs:element ref="requ02000:RechercheKundeAuftraegeRequest">

                                                                       <xs:annotation><xs:appinfo>

                                                                                  <jaxb:property name="RechercheKundeAuftraegeRequest2"/> <!--customization-->

                                                                       </xs:appinfo></xs:annotation>

                                                           </xs:element>

                                                           <xs:element ref="requ:RechercheKundeAktionenRequest" />

                                                           <xs:element ref="requ02000:RechercheKundeZahlverhaltenRequest" />

                                               </xs:choice>

                                   </xs:sequence>

                        </xs:complexType>

            </xs:element>

</xs:schema>

 

In generated ObjectFactory.java JaxMe creates duplicate createRechercheKundeAuftraegeRequest() methods:

 

  public de.tcom.blmv.types.v01200.requ.RechercheKundeAuftraegeRequest createRechercheKundeAuftraegeRequest() throws javax.xml.bind.JAXBException {

    return (de.tcom.blmv.types.v01200.requ.RechercheKundeAuftraegeRequest) newInstance(de.tcom.blmv.types.v01200.requ.RechercheKundeAuftraegeRequest.class);

  }

 

  public de.tcom.blmv.types.v01200.requ.RechercheKundeAuftraegeRequestType createRechercheKundeAuftraegeRequestType() throws javax.xml.bind.JAXBException {

    return (de.tcom.blmv.types.v01200.requ.RechercheKundeAuftraegeRequestType) newInstance(de.tcom.blmv.types.v01200.requ.RechercheKundeAuftraegeRequestType.class);

  }

 

  public de.tcom.blmv.types.v02000.requ.RechercheKundeAuftraegeRequest createRechercheKundeAuftraegeRequest() throws javax.xml.bind.JAXBException {

    return (de.tcom.blmv.types.v02000.requ.RechercheKundeAuftraegeRequest) newInstance(de.tcom.blmv.types.v02000.requ.RechercheKundeAuftraegeRequest.class);

  }

 

  public de.tcom.blmv.types.v02000.requ.RechercheKundeAuftraegeRequestType createRechercheKundeAuftraegeRequestType() throws javax.xml.bind.JAXBException {

    return (de.tcom.blmv.types.v02000.requ.RechercheKundeAuftraegeRequestType) newInstance(de.tcom.blmv.types.v02000.requ.RechercheKundeAuftraegeRequestType.class);

  }

 

How can I avoid this. Or is this a bug in JaxMe?

 

Mit freundlichen Grüßen

 

Martin Both

T-Systems Enterprise Services GmbH

Systems Integration

SSC P&PA

Industry Business Unit Telco

Auf der Großen Heide 9, D-33609 Bielefeld

+49 521 5259-652 (Tel)

+49 521 5259-698 (Fax)

 

Reply via email to