Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Problem solved.</p> <p>The JAXB plugin Annotate <a href="http://confluence.highsource.org/display/J2B/Annotate+Plugin">http://confluence.highsource.org/display/J2B/Annotate+Plugin</a> do the job.</p> <p>Add the following fragment in your jaxb binding file (external binding, i.e. a .xjb file):</p> <pre><code>&lt;jaxb:bindings schemaLocation="csw/2.0.2/CSW-discovery.xsd" node="/xs:schema"&gt; &lt;jaxb:bindings node="xs:complexType[@name='GetRecordsType']"&gt; &lt;annox:annotate&gt; &lt;annox:annotate annox:class="javax.xml.bind.annotation.XmlRootElement" name="GetRecordsType" /&gt; &lt;/annox:annotate&gt; &lt;/jaxb:bindings&gt; &lt;/jaxb:bindings&gt; </code></pre> <p>Do not forget to declare the namespaces:</p> <pre><code>&lt;jaxb:bindings xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:annox="http://annox.dev.java.net" xsi:schemaLocation="http://java.sun.com/xml/ns/jaxb http://java.sun.com/xml/ns/jaxb/bindingschema_2_0.xsd" jaxb:extensionBindingPrefixes="xjc annox" version="2.1"&gt; ... &lt;/jaxb:bindings&gt; </code></pre> <p>And use a ANT or MAVEN task <a href="http://confluence.highsource.org/display/J2B/User+Guide">http://confluence.highsource.org/display/J2B/User+Guide</a> to proceed the generation of the sources.</p> <p>I still search how to specify manually (without an xjc task with ant or maven) the JAXB extensions but it works now. (I have my own ANT script what's why I search to manually call XJC).</p> <p>The JAXB extension mechanism is very convenient, have a look to JAXB2 Basics: <a href="http://confluence.highsource.org/display/J2B/Home">http://confluence.highsource.org/display/J2B/Home</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload