Skip to Content
0
Former Member
Sep 12, 2007 at 03:42 AM

Use of JAXB in NWDS

38 Views

Hi Experts,

We are facing problems with the use of JAXB 2.0 in NWDS 2004, with JDK 1.5.

Actually we had to do XML parsing, along with validation, w.r.t.

a large and complicated schema definition, so we chose JAXB,

which would be faster.

For working with JAXB, we installed the Java WSDP 2.0, and were

successful in creating the Java classes from the given schema definition.

But, when we imported the generated classes in a Java DC, syntax errors

are shown on the annotations generated by the JAXB Binder / compiler.

Hence, the Java Project cannot be compiled.

Also, if the java project is compiled at the command prompt,ie. using javac,

it gets successfully compiled and executed. That means, we are able to fetch

the Objects (of the JAXB generated Java classes) created by unmarshalling

(parsing in JAXB terms) the XML.

We have included all the required JAR files for use of JAXB.

Please give some guidelines, for the use of JAXB 2.0 generated Java Classes

in NWDS.

For reference, JAXB" target="_blank">http://www.oreillynet.com/cs/user/view/cs_msg/81043">JAXB 2.0 and Using" target="_blank">http://java.sun.com/developer/technicalArticles/WebServices/jaxb/#binsch">Using JAXB

Regards,

Alka.