JaxB binding

Is it possible to bind a method declartion to an xml schema using JAXB. For instance, want to inforce the command pattern execute method in the JAXB generated clasess.

Hi,
Please post your DTD also.
With out DTD we won't be knowing the Structure of the Document..
For Ex. we don't know how many times element list1 can occur..
-Sateesh

Similar Messages

  • Can't create a JAXB binding for ejb-jar.xml using xjc

    Hi all,
    I have been trying to build a JAXB binding for EJB deployment descriptors, mainly because I have to update a hand-cranked ejb-jar.xml file on the fly with some additions that have come from a code generator.
    I have tried to use
    xjc ejb-jar_2_1.xsd j2ee_1_4.xsd ejb-jar_2_1.xsd
    xjc on the schema definitions I found at http://java.sun.com/xml/ns/j2ee/ but I can't get it to work. It produces reams of errors, see below for a short extract.
    Of course, someone could put me out of my misery and tell me where to find a binding that someone else has done. I can't be the first chimp on the planet that has wanted to do this!
    Any help much appreciated.
    errors:
    [WARNING] warning: "blockDefault" attribute of <schema> is not supported
    line 3 of xml.xsd
    [WARNING] warning: "finalDefault" attribute of <schema> is not supported
    line 3 of xml.xsd
    [WARNING] warning: <key> identity constraint will be ignored by JAXB validation
    line 117 of j2ee_web_services_client_1_1.xsd
    [WARNING] warning: <key> identity constraint will be ignored by JAXB validation
    line 115 of ejb-jar_2_1.xsd
    [WARNING] warning: <keyref> identity constraint will be ignored by JAXB validation
    line 129 of ejb-jar_2_1.xsd
    [WARNING] warning: <key> identity constraint will be ignored by JAXB validation
    line 145 of ejb-jar_2_1.xsd
    [WARNING] warning: <keyref> identity constraint will be ignored by JAXB validation
    line 159 of ejb-jar_2_1.xsd

    Exception initializing 'oracle.dbtools.raptor.MonitorJDBCAddin' in extension 'Oracle SQL Developer': oracle.classloader.
    util.AnnotatedNoClassDefFoundError:
    Missing class: oracle.jdbc.OracleDriverThe Oracle driver is not on the classpath.

  • Error in Jaxb binding for wsdl document

    Hello
    below is my wsdl and binding.xjb that I am using. I want to rename the " <element name="getRelatedAssets">" name from 'getRelatedAssets' to 'getRelatedAssetsX'.
    But when I run it i got the following error
    [ERROR] compiler was unable to honor this property customization. It is attached to a wrong place, or its inconsistent with other bindings.
    [ERROR] (the above customization is attached to the following location in the schema)
    line 16 of file:/C:/Users/syedf/Documents/Checkers/4842/sample.wsdl
    Here is my wsdl:
    <wsdl:definitions targetNamespace="http://services.external.dmh.ibm.com"
    xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap"
    xmlns:impl="http://services.external.dmh.ibm.com" xmlns:intf="http://services.external.dmh.ibm.com"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:types>
    <schema elementFormDefault="qualified" targetNamespace="http://services.external.dmh.ibm.com"
    xmlns="http://www.w3.org/2001/XMLSchema" xmlns:apachesoap="http://xml.apache.org/xml-soap"
    xmlns:impl="http://services.external.dmh.ibm.com" xmlns:intf="http://services.external.dmh.ibm.com"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <complexType name="WsaaAuthToken">
    <sequence>
    <element name="authToken" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    <element name="getRelatedAssets">
    <complexType>
    <sequence>
    <element name="token" nillable="true" type="impl:WsaaAuthToken"/>
    <element name="anchorAsset" nillable="true" type="impl:WsaaAssetKey"/>
    <element name="relationshipName" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    </element>
    </wsdl:definitions>
    and here is my binding file:
    <jaxws:bindings
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
    xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.1"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    wsdlLocation="C:\Users\syedf\Documents\Checkers\4842\sample.wsdl">
         <jaxws:bindings node="wsdl:definitions/wsdl:types/xsd:schema">
              <jaxb:bindings node="//xsd:element[@name='getRelatedAssets']">
    <jaxb:property name="getRelatedAssetsX"/>
    </jaxb:bindings>               
    </jaxws:bindings>
    </jaxws:bindings>
    Can anyone help me out in finding what wrong I am doing.
    I appreciate.

    Well, As I mentioned There is an element named 'getRelatedAssets' and I want to rename it to some other name like 'getRelatedAssetsXXXXX' which would not be in Schema using jax binding.
    Note. When I manually change the name to 'getRelatedAssetsXXXXX' in WSDL, it works. but I want to make it using jaxbinding.
    Anyways,Thanks for the reply.

  • Jaxb bind to custom class

    Hi,
    i have a wsdl with such schema: complextype person with elements COLBOBPPHONE, COLBOBPPHONE and COLBOBPEMAIL. wsimport generates than class Person and getters/setters for this elements. I'd like a custom binding, than makes one member in Person named communications. In communications i'd have getters and setters for COLBOBPPHONE, COLBOBPPHONEand COLBOBPEMAIL. Than i would access it by person.getCommunications().getCOLBOBPPHONE(). So i try like this, i created a new complextype:
    <complexType name="Communications">
    <all>
      <element name="telephones" type="ns:COLBOBPPHONE" minOccurs="1"
    maxOccurs="1" nillable="true" />
      <element name="faxes" type="ns:COLBOBPPHONE" minOccurs="1"
    maxOccurs="1" nillable="true" />
      <element name="emails" type="ns:COLBOBPEMAIL" minOccurs="1"
    maxOccurs="1" nillable="true" />
    </all>
    </complexType>How to i say in jaxb custom bindings that the elements COLBOBPPHONE, COLBOBPPHONEand COLBOBPEMAIL should be bind to property communications which is class Communications? Is this even possible with jaxb? Maybe i have to use jixb or something else?
    for better understanding, is the structure mapping that description follows possible also with jaxb? [jibx structure mapping|http://jibx.sourceforge.net/binding/tutorial/binding-structures.html]
    Edited by: juro on Jun 23, 2009 6:50 AM

    yes. check getter and setter functions.

  • JAXB binding list of doubles

    Hi, I have a problem in binding elements containing a list of doubles. The elements may occur many times. In the generated code, doubles from different elements are returned in the same list. Is there any way to force the creation of a new java type, so that doubles from different elements can be accesed separately?
    Example:
    XSD:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
         elementFormDefault="qualified">
         <xsd:element name="main">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element name="foo" type="foo"/>
                   </xsd:sequence>
              </xsd:complexType>
         </xsd:element>
         <xsd:complexType name="foo">
              <xsd:sequence>
                   <xsd:element name="bar" type="doubleArray" minOccurs="1" maxOccurs="unbounded"/>
              </xsd:sequence>
         </xsd:complexType>
         <xsd:simpleType name="doubleArray">
              <xsd:list itemType="xsd:double"/>
         </xsd:simpleType>
    </xsd:schema>
    XML
    <?xml version="1.0" encoding="UTF-8"?>
    <main xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="forum.xsd">
         <foo>
              <bar>1 2 3</bar>
              <bar>4 5 6</bar>
              <bar>7 8 9</bar>
         </foo>
    </main>Generated code:
         * Objects of the following type(s) are allowed in the list
         * double
        java.util.List getBar();Method getBar returns a list containing all the doubles from all the bar elements, instead of returning a list of objects of type Bar, where each object at its turn contains a list of doubles.
    Thank you

    Rogier_de_Groot wrote:
    So if you wanted to generate an XML document like I wanted to do, you'd use something other then JAXB?I have no idea. I haven't ever had any use for XML-to-Java mappings like that. And I don't know what your requirements are; it seems to me like JAXB would do but you have some complaints which appear in my opinion to be non-critical. I certainly wouldn't start writing a JAXB clone just based on what you posted here. For me, if it works and removes the requirement for me to do 6 months of design and development, I'm willing to overlook a few things.

  • XML JAXB Binding issue

    Hi All
    Im using Webservices in which i need to Bind my XML to Java objects and reverse. Im trying to use JAXB (1.0) Ref Imp from SUN as binding framework. The problem which im facing is that for elements like:
    <xs:element name="inputRequests">
    <xs:complexType>
    <xs:sequence>
    <xs:element maxOccurs="unbounded" name="inputData" type="data" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    JAXB genetrates:
    1. InputRequest - Interface
    2. InputRequestImpl - Class
    3. InputRequestType - Interface
    4. InputRequestTypeImpl - Class
    in InputRequestType it has generated a getter method
    public java.util.List getInputData();
    but no setter method for 'inputData'.
    Can any one help on that how we can set a sequence element in JAXB classes. I even used JAXB 2.0, but faced same issue...
    No Setter for a LIST :-(((

    That method, getInputData() is returning a reference to a List Object that is already instantiated. Once you retrieve the reference, you can invoke all the methods in the List interface, but if there is a way to reassign the reference to refer to a different list, I'm not aware of one.
    I believe that limitation is necessary my the nature of JAXB. A JAXB Object, in your case a List, is guaranteed to be marshaled and unmarshaled to XML, if you redefine the reference to some arbitrary List, how could JAXB guarantee its functionality?
    I may be way off base here, I'm no JAXB expert by any means.
    Rather than redefining the reference to a different List, you have to manipulate the List
    ...getInputData().clear();
    ...getInputData().addAll(myRequestList);Right?

  • JAXB binding for Boolean

    Hi,
    I'm using xml and JMS to query a remote system.
    One of the values in the remote system that I am interested in is a boolean value. I do not know this field is defaulted in the remote system so I want to use a Boolean object to represent it. I.e I want it to be null is no value is available in the remote system.
    Could any of you give me a quick run down on how to go abount doing this or point me to a tutorial.
    Is there another way of doing what I am trying to do?
    Appreciate any help.
    Cheers,
    Nim

    Hi James,
    Yup, I'm trying to process the xml returned by the remote system.
    The Boolean is an element and not an attribute:
    The schema i am using is shown below:
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="accounts" type="AccountsType"/>
    <xsd:complexType name="AccountsType">
    <xsd:sequence>
    <xsd:element name="account" type="Account" minOccurs="0" maxOccurs="unbounded"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="Account">
    <xsd:sequence>
    <xsd:element name="accountId" type="xsd:string"/>
    <xsd:element name="customerId" type="xsd:string"/>
    <xsd:element name="totalAmountOwing" type="xsd:decimal"/>
    <xsd:element name="amountOwing" type="xsd:decimal"/>
    <xsd:element name="totalArrears" type="xsd:decimal"/>
    <xsd:element name="paymentExtensionCount" type="xsd:integer"/>
    <xsd:element name="paymentHistoryIndicator" type="xsd:string"/>
    <xsd:element name="payDate" type="xsd:date"/>
    <xsd:element name="directDebitSchedule" type="xsd:boolean"/>
    <xsd:element name="easyPaySchedule" type="xsd:boolean"/>
    <xsd:element name="billIssueDate" type="xsd:date"/>
    <xsd:element name="arrearsDebtAge" type="xsd:integer"/>
    <xsd:element name="sourceSystemId" type="xsd:string"/>
    <xsd:element name="readFrequency" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    I have access to change the schema. I tried making the boolean an attribute as shown below:
    <xsd:element name="easyPaySchedule">
    <xsd:complexType>
    <xsd:sequence/>
    <xsd:attribute name="value" type="xs:boolean"/>
    </xsd:complexType>
    </xsd:element>
    but I could not see the isSetMethod in the jaxb account implementation file.
    I changed it back and added minOccurs="0":
    <xsd:element name="easyPaySchedule" type="xsd:boolean" minOccurs="0" maxOccurs="1"/>
    and started seeing the isSetMethod in the jaxb account implementation class but not the generated account interface.
    Next, I used the xjb file below:
    <jxb:bindings version="1.0"
    xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <jxb:bindings schemaLocation="accounts.xsd" node="/xsd:schema">
    <jxb:bindings node="//xsd:complexType[@name='Account']">
    <jxb:bindings node=".//xsd:element[@name='easyPaySchedule']">
    <jxb:property generateIsSetMethod="true"/>
    </jxb:bindings>
    </jxb:bindings> <!-- node="//xsd:complexType[@name='Account'] -->
    </jxb:bindings> <!-- schemaLocation="accounts.xsd" node="/xsd:schema" -->
    </jxb:bindings>
    and I started seeing the isSet methods in the generated Account interface.
    I thought I was in the clear but when I try and run it with the xml below:
    <account>
    <accountId>11111111111</accountId>
    <customerId>2222222</customerId>
    <totalAmountOwing>123</totalAmountOwing>
    <amountOwing>12</amountOwing>
    <totalArrears>0</totalArrears>
    <paymentExtensionCount>1</paymentExtensionCount>
    <paymentHistoryIndicator>110111001111</paymentHistoryIndicator>
    <payDate>2004-10-08+10:00</payDate>
    <directDebitSchedule>false</directDebitSchedule>
    <easyPaySchedule></easyPaySchedule> <<<<<<------ blank instead of false/true
    <billIssueDate>2003-10-08+10:00</billIssueDate>
    <arrearsDebtAge>0</arrearsDebtAge>
    <sourceSystemId>cise</sourceSystemId>
    <readFrequency>Q</readFrequency>
    </account>
    I start to get the following exception:
    javax.xml.bind.UnmarshalException: Unexpected text ""
    - with linked exception:
    [java.lang.NullPointerException]
    Any ideas as to whats going on?
    Cheers,
    Nim

  • Jaxb binding where no datatype given.

    I have an xml schema that I don't have access to change, it has many elements with no type. The type of each of these should be String, But when I run xjc they com out as AnyTypes.
    I have tried creating a binding file with the following at each relevent node:
    <jxb:javaType name="java.lang.String"
                          parseMethod="javax.xml.bin.DatatypeConverter.parseString"
                          printMethod="javax.xml.bin.DatatypeConverter.printString" />but I get
         [exec] [ERROR] Specified conversion customization is not used.
         [exec] line 10 of dmv.xjb
         [exec] Failed to parse a schema.is there a way for me to do this without editing my schema?

    bindingStyle is defined in http://java.sun.com/xml/ns/jaxb which I referenced at the top of my bindings files as such:
    <jxb:bindings version="1.0" xmlns:jxb="http://java.sun.com/xml/ns/jaxb" xmlns:xs="http://www.w3.org/2001/XMLSchema">
         <jxb:bindings schemaLocation="ims_qtiasiv1p2c.xsd" node="/xs:schema">

  • Jaxb -binding specific elements of schema to class

    Is there a way to bind only specific elements from a schema to a class instead of binding everything in the schema. If yes, how do you specify this.

    The <class> binding declaration customizes the binding of a schema element.
    http://java.sun.com/xml/jaxb/users-guide/jaxb-custom.html#customdesc_class

  • JAXB binding schema type conversions

    If your DTD contains something like this:
    <!ELEMENT chicken (egg+)>
    then JAXB gives you a Chicken class with a method that returns a List of Egg objects.
    How can I specify in the binding schema that this collection should be a Hashtable (or other type of collection), not the default List? I think I probably have to write some sort of conversion class, but what is the syntax and how do I get it into my binding schema?

    Hi you can use the <option> tag at the top-level of your binding schema definition. You can define the default collection type of to be used e.g.
    <options default-reference-collection-type="array"/>
    Or you can use the collection attribute of most element bindings e.g.
    <choice property="entries" collection="array"/>
    But only arrays and lists are supported. If you want a different collection type, then you will have to subclass the generated classes and use the Collections class and the collection classes to convert between different collection types.
    Hope this helps.

  • JAXB binding schema problem

    hi friends,
    i didn't get implementation classes for xsd during the binding schema.i insatlled Jwsdp2.0and j2sdk1.5.Is any give me me an idea

    Hi
    Go through the sun website for doing so. This would give you a clue as to how to.
    http://java.sun.com/xml/jaxb/jaxb-docs.pdf
    It teaches you a step by step procedure to go ahead.

  • JAXB binding compiler error "Unique Particle Attribution"

    I'm trying to compile an xsd but get an error:
    parsing a schema...
    [ERROR] cos-nonambig: "":SomeData and WC[##any] (or elements from their substitution group) violate "Unique Particle Attribution".
    line 4 of TestCase.xsd
    Failed to parse a schema.
    I've narrowed the error down to this test case:
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
     &nbsp <xs:element name="AnElement" type="AnElementType"/>
     &nbsp <xs:complexType name="AnElementType">
       &nbsp <xs:sequence>
         &nbsp <xs:element name="SomeData" type="xs:string" minOccurs="0"/>
         &nbsp <xs:any minOccurs="0"/>
       &nbsp </xs:sequence>
     &nbsp </xs:complexType>
    </xs:schema>
    If I remove the 'minOccurs' from the 'SomeData' element, it compiles fine. Any ideas on why Sun's JAXB compiler doesn't like this xsd?
    Thanks,
    Josh

    Does modifying the schema remove the error?
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="AnElement" type="AnElementType"/>
    <xs:complexType name="AnElementType">
    <xs:choice>
    <xs:any minOccurs="0"/>
    <xs:sequence>
    <xs:element name="SomeData" type="xs:string" minOccurs="1"/>
    <xs:any minOccurs="0"/>
    </xs:sequence>
    </xs:choice>
    </xs:complexType>
    </xs:schema>
    thanks,
    Deepak

  • JAXB Binding problem

    Am having trouble building an external binding file to cope with the following xsd extract
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema targetNamespace="urn:hl7-org:v3" xmlns="urn:hl7-org:v3" xmlns:sch="http://www.ascc.net/xml/schematron" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:hl7="urn:hl7-org:v3" xmlns:xlink="http://www.w3.org/TR/WD-xlink" xmlns:gsd="http://aurora.regenstrief.org/GenericXMLSchema" elementFormDefault="qualified">
         <xsd:complexType name="ANY" abstract="true">
              <xsd:attribute name="nullFlavor" type="cs_NullFlavor" use="optional"/>
         </xsd:complexType>
         <xsd:simpleType name="cs_NullFlavor">
              <xsd:restriction base="cs">
                   <xsd:enumeration value="NI"/>
                   <xsd:enumeration value="NA"/>
                   <xsd:enumeration value="UNK"/>
              </xsd:restriction>
         </xsd:simpleType>
         <xsd:simpleType name="cs_AddressPartType">
              <xsd:restriction base="cs">
                   <xsd:enumeration value="DEL"/>
                   <xsd:enumeration value="STTYP"/>
                   <xsd:enumeration value="STR"/>
                   <xsd:enumeration value="ADDRK"/>
              </xsd:restriction>
         </xsd:simpleType>
         <xsd:complexType name="AD" mixed="true">
              <xsd:complexContent mixed="true">
                   <xsd:extension base="ANY">
                        <xsd:sequence>
                             <xsd:choice minOccurs="0" maxOccurs="unbounded">
                                  <xsd:element name="streetName">
                                       <xsd:complexType mixed="true">
                                            <xsd:complexContent mixed="true">
                                                 <xsd:restriction base="ADXP">
                                                      <xsd:attribute name="partType" type="cs_AddressPartType" fixed="STR"/>
                                                 </xsd:restriction>
                                            </xsd:complexContent>
                                       </xsd:complexType>
                                  </xsd:element>
                                  <xsd:element name="streetNameType">
                                       <xsd:complexType mixed="true">
                                            <xsd:complexContent mixed="true">
                                                 <xsd:restriction base="ADXP">
                                                      <xsd:attribute name="partType" type="cs_AddressPartType" fixed="STTYP"/>
                                                 </xsd:restriction>
                                            </xsd:complexContent>
                                       </xsd:complexType>
                                  </xsd:element>
                             </xsd:choice>
                        </xsd:sequence>
                   </xsd:extension>
              </xsd:complexContent>
         </xsd:complexType>
         <xsd:simpleType name="cs_BinaryDataEncoding">
              <xsd:restriction base="xsd:NMTOKEN">
                   <xsd:enumeration value="B64"/>
                   <xsd:enumeration value="TXT"/>
              </xsd:restriction>
         </xsd:simpleType>
         <xsd:complexType name="BIN" abstract="true" mixed="true">
              <xsd:complexContent mixed="true">
                   <xsd:extension base="ANY">
                        <xsd:attribute name="representation" type="cs_BinaryDataEncoding" use="optional" default="TXT">
                        </xsd:attribute>
                   </xsd:extension>
              </xsd:complexContent>
         </xsd:complexType>
         <xsd:complexType name="ED" mixed="true">
              <xsd:complexContent mixed="true">
                   <xsd:extension base="BIN">
                        <xsd:attribute name="mediaType" type="cs" use="optional" default="text/plain">
                        </xsd:attribute>
                        <xsd:attribute name="language" type="cs" use="optional">
                        </xsd:attribute>
                   </xsd:extension>
              </xsd:complexContent>
         </xsd:complexType>
         <xsd:complexType name="ST" mixed="true">
              <xsd:complexContent mixed="true">
                   <xsd:restriction base="ED">
                        <xsd:attribute name="mediaType" type="cs" use="optional" default="text/plain">
                        </xsd:attribute>
                        <xsd:attribute name="language" type="cs" use="optional">
                        </xsd:attribute>
                   </xsd:restriction>
              </xsd:complexContent>
         </xsd:complexType>
         <xsd:complexType name="ADXP" mixed="true">
              <xsd:complexContent mixed="true">
                   <xsd:extension base="ST">
                        <xsd:attribute name="partType" type="cs_AddressPartType">
                        </xsd:attribute>
                   </xsd:extension>
              </xsd:complexContent>
         </xsd:complexType>
         <xsd:simpleType name="cs">
              <xsd:restriction base="xsd:token">
                   <xsd:pattern value="[^\s]*"/>
              </xsd:restriction>
         </xsd:simpleType>
    </xsd:schema>
    Above is a very much truncated extract of our xsd file
    I get XJC errors around 'streetNameType'
    any ideas on a binding definition that works with this ??
    Thanks

    This is the SAMPLE schema - that includes the earlier post
    (ie the earlier post shows datatypes.xsd)
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema targetNamespace="urn:hl7-org:v3" xmlns="urn:hl7-org:v3" xmlns:hl7="urn:hl7-org:v3" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
         <xs:include schemaLocation="datatypes.xsd"/>
         <xs:element name="rootTest" type="test.smTest"/>
         <xs:complexType name="test.smTest">
              <xs:sequence>
                   <xs:element name="id" type="xs:anySimpleType"/>
                   <xs:element name="addr" type="AD" minOccurs="0"/>
              </xs:sequence>
         </xs:complexType>
    </xs:schema>

  • JAXB - binding several schemas at once

    If I have 4 schemas, each one including/chaining another (except the base schema of course). I want to bind all of them. I tried just puting all the schema names in the bind command but i get errors stating that 'class/interface with the same name is already in use'. If I do each individually I also get the same errors. How can I resolve this?

    Actually more like this from the cmd prompt:
    %JAXB_HOME%/bin/xjc.bat -p mypackage A.xsd B.xsd C.xsd D.xsd -d src
    Its not that it doesn't work but that it produces naming conflict errors. I just found something on google that might help me out though. Thanks

  • JAXB -Binding Schema

    What entries should you make in the binding schema for:
    <rate year="2001">7.00</rate>
    so that it constructs a class rate with a field "content" as a double and a field year as an int?

    same questions:
    in DTD defines
    <!ELEMENT SERVICETYPE     (#PCDATA)>
    <!ATTLIST SERVICETYPE     
         type           CDATA #REQUIRED
         anon           CDATA #REQUIRED>
    how should I define the element SERVICETYPE in my binding Schema?
    Gang

Maybe you are looking for

  • SAP R/3 Database copy

    hi,   We have a scenario like below:   We have the regular landscape like production, quality and development for SAP R/3 as well as BW. What happened was they have deleted all the master data and transaction data from quality R/3 system some time ba

  • Problem with Make (C language) command on Aquamacs

    Hello i'm french.. so sorry for my English i'm trying to do some basics programs on C langage on Aquamacs. but the "make" command does not works with me. my module is like this #include <stdlib.h> #include <stdio.h> #include "arithmetique.h" int max(

  • Why can't i make a payment from my phone?

    I've tried to make a payment from my phone, online, and have sent email and I can't get any results.@

  • Streaming Win7 desktop or URL to DLNA TV

    I've seen various reports that it is possible to configure DLNA/upnp servers for Win such as TVersity and VC to stream a live windows desktop to a DLNA-capable TV (i.e. on that supports DMR). Based on what I read, the configurations don't seem to wor

  • "rename a discoverer report or workbook from insatance"

    how to rename a discoverer reportname or workbook from insatance. regards,