aspose file tools
The moose likes Web Services Certification (SCDJWS/OCPJWSD) and the fly likes Two Question [JAXB and JAX-WS] Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCPJWSD)
Reply Bookmark "Two Question [JAXB and JAX-WS]" Watch "Two Question [JAXB and JAX-WS]" New topic
Author

Two Question [JAXB and JAX-WS]

Khaled Mahmoud
Ranch Hand

Joined: Jul 15, 2006
Posts: 360
Hi,

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.

SCJP, SCJD,SCWCD,SCDJWS,SCEA 5 MCP-C#, MCP-ASP.NET - http://www.khaledinho.com/
Life is the biggest school
Ivan Krizsan
Bartender

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

Best wishes!
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Two Question [JAXB and JAX-WS]
 
Similar Threads
Jax-B
JAX-RPC and JAX-WS
Why JAX-WS over JAX-RPC + JAXB
Difference between (Java to XML) binding and serialization, JAXB and XStream
Is a synchronized (this) {} block sufficient here?