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
Satya - Wednesday, January 26, 2005 2:48:33 PM
How best to validate XSDs?
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.
Satya - Wednesday, January 26, 2005 4:45:06 PM
How to avoid the type generation for the root element?
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.
Satya - Wednesday, January 26, 2005 5:11:57 PM
How to change the name of a generated method?
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();
Satya - Wednesday, January 26, 2005 5:17:28 PM
Where can I find more about JAXB customization?
Take a look at the following sun tutorial on server side technologies
Satya - Wednesday, January 26, 2005 5:21:09 PM
Here is the customiization syntax page
1. Customization syntax from Sun
Satya - Wednesday, January 26, 2005 5:29:56 PM
Here is an example of an XML and XSD file for jaxb
Satya - Friday, January 28, 2005 9:52:43 AM
How can I use a command line transform xml using xslt?
If I have java webservices downloaded, how can I use a command line to transform xml to xslt?
Satya - Friday, January 28, 2005 1:30:29 PM
The following is supposed to work
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