External Links

State of JAXB

Notes on XSDs

Tutorials from Sun

Post installation instructions for the java web services pack 1.3

For standalone Java(TM) applications to work with the Java(TM) Web Services Developer Pack, the JAXP classes built into JDK 1.4.x must be overridden. Overriding these classes is not necessary in order to run the bundled tomcat or the samples, since the provided scripts set "java.endorsed.dirs".

For JDK 1.4.x users, set the java.endorsed.dirs system property to:


  C:\jws-pack-13\jaxp\lib\endorsed

Alternatively, create the directory:


 \jre\lib\endorsed

and then copy the files in the following directory to the newly created directory:


 C:\jws-pack-13\jaxp\lib\endorsed

As one creates the XSDs for JAXB it is important to know if they are doing the right thing without buying an xmlspy or someother tool like that.

is there a website that you can plug in the xsd and get back a reply if that is right.

One can always feed it to the xjc.bat and see what it does.

Consider the following xsd element

<xs:element name="DCETemplateLayout">
<xs:complexType>
      <xs:sequence>
         <xs:element name="Section" 
            type="SectionType" 
            minOccurs="1" />
      </xs:sequence>
</xs:complexType>      
</xs:element>

This will generate two interfaces for the root element. DCETemplateLayout and DCETemplateLayoutType How can I avoid this?

See Sayeds doc to see if this was addressed.

Here is one way to rename the get methods generated for a collection of children. For example.

<xs:element name="Section" type="SectionType" minOccurs="0" maxOccurs="unbounded"/>

will generate a method as follows

List getSection();

The name is quite misleading as what it returns is a list where as its name is singular. Here is one way to override the name of this method

 
<xs:element name="Section" type="SectionType" minOccurs="0" maxOccurs="unbounded">
   <xs:annotation>
      <xs:appinfo>
          <jxb:property name="Sections"/>
      </xs:appinfo>
   </xs:annotation>
</xs:element>

This will generate

List getSections();

Take a look at the following sun tutorial on server side technologies

Server side tutorial from Sun

1. Customization syntax from Sun

2. Customization overview

See the xml,xsd files

If I have java webservices downloaded, how can I use a command line to transform xml to xslt?

If you have downloaded jaxb pack the following command line is supposed to work


java 
-Djava.endorsed.dirs=jwsdp-root\jaxp\lib\endorsed 
org.apache.xalan.xslt.Process 
-in %1   
-XSL %2