File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Two Question [JAXB and JAX-WS] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Two Question [JAXB and JAX-WS]" Watch "Two Question [JAXB and JAX-WS]" New topic

Two Question [JAXB and JAX-WS]

Khaled Mahmoud
Ranch Hand

Joined: Jul 15, 2006
Posts: 361

I got two questions, one about JAXB and one about JAX-WS .

The first one which is about JAXB. When unmarshelling objects using the [unmarshaller] that is obtained from the JAXB context, there is an option to do validation, that is if the data correspond to the constraint declared in the XML schema.

The question is, how does the JAXB API know to wich XML Shcema file (xsd) to look. Let's say we have three XSD file, and more over there might be DTD files as well.

The second Question : Is there any comprehensive simple tutorial, set of articles covering JAX-WS inluding Communication models, Dispatches ... etc

Thanks in advance.

Life is the biggest school
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
The following code snippet shows how perform validation when using JAXB to unmarshall XML data:

Best wishes!
I agree. Here's the link:
subject: Two Question [JAXB and JAX-WS]
It's not a secret anymore!