aspose file tools*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes JAXB VALIDATION Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "JAXB VALIDATION" Watch "JAXB VALIDATION" New topic
Author

JAXB VALIDATION

Andy Smith
Ranch Hand

Joined: Sep 28, 2003
Posts: 239
What is the concept of validation in JAXB ?
Can anyone plz explain in detail


Share Knowledge to gain it.
SCJP 2, SCWCD 2, SCDJWS, IBM 141 (In Progress), IBM 486 (Next)
Tong Chen
Ranch Hand

Joined: Apr 26, 2002
Posts: 1011
Find it out from JavaWSTutorial:
"Unmarshal Validate Example" on page 426
and "Validate-On-Demand Example" on page 428.


Tong Chen (Seattle USA)<br />SCJP,SCWCD,SCDJWS,IBM XML,MCP.NET,MCAD.NET,MCSD.NET
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Vlaidation means the input XML file is validated against its schema i.e. the structure and constraints defined in the schema are followed in the XML instance.


Groovy
Ian McDermid
Greenhorn

Joined: May 15, 2005
Posts: 1
A more detailed explaination is:

JAXB Objects are created from XSD's. When you create an object, when you create the XML from that object, the resultant XML will be validated against the XSD
Chris Lexington
Greenhorn

Joined: Apr 12, 2005
Posts: 10
I don't know how much of this is news to you, but here goes.

Unmarshalling means moving XML to and an object tree, Marshalling means the reverse. In JAXB, there is an Unmarshaller object and a Marshaller object. The Unmarshaller does validation, the marshaller does not. There is also a way to perform validation anytime you want (programmatically), but I have never used that feature.


SCJP, SCWCD, MCP, SCDJWS
Mikalai Zaikin
Ranch Hand

Joined: Jun 04, 2002
Posts: 3212
    
    6
http://java.boot.by/wsd-guide/ch05s03.html


Free SCDJWS 5.0 Study Guide - SCDJWS 5.0 Quiz (How to get SCDJWS 5.0 Quiz)
Java Platform, Enterprise Edition 6 Web Services Developer Certified Expert Exam Study Guide and Quiz
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAXB VALIDATION