JaxMe 0.5.1 generates not the wishes code for this schema

I would like to change the package name with jaxb:schemaBindings but not for the referenced stns:BLMVRechercheRequest.

 

 

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

            targetNamespace="http://schemas.xmlsoap.org/soap/envelope/"

            xmlns:tns="http://schemas.xmlsoap.org/soap/envelope/"

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

            xmlns:stns="http://v02000.types.blmv.tcom.de" >

 

<xs:annotation><xs:appinfo>

            <jaxb:schemaBindings>

                        <jaxb:package name="de.tcom.blmv.types.xmlsoap"/>

            </jaxb:schemaBindings>

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

 

<xs:include schemaLocation="BL_MV_RequestV02000.xsd"/>

 

<!-- Envelope and body -->

 

<xs:element name="Envelope">

            <xs:complexType>

            <xs:sequence>

            <xs:element ref="tns:Body" minOccurs="1" />

            </xs:sequence>

            </xs:complexType>

</xs:element>

 

<xs:element name="Body">

            <xs:complexType>

            <xs:sequence>

            <xs:element ref="stns:BLMVRechercheRequest" minOccurs="1" maxOccurs="1">

                        <xs:annotation><xs:appinfo>

                                   <jaxb:schemaBindings>

                                               <jaxb:package name="de.tcom.blmv.types.v02000"/>

                                   </jaxb:schemaBindings>

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

            </xs:element>

            </xs:sequence>

            </xs:complexType>

</xs:element>

 

</xs:schema>

 

JaxMe produced wrong code in file de.tcom.blmv.types.xmlsoap.impl.BodyTypeHandler.java

It always try to use de.tcom.blmv.types.xmlsoap.BLMVRechercheRequest.class
but the right would be
de.tcom.blmv.types.v02000.BLMVRechercheRequest.class

 

The BL_MV_RequestV02000.xsd is

 

<?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>

 

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