This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
Author

Two Question [JAXB and JAX-WS]

Khaled Mahmoud
Ranch Hand

Joined: Jul 15, 2006
Posts: 361
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
Ranch Hand

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

Best wishes!
 
jQuery in Action, 2nd edition
 
subject: Two Question [JAXB and JAX-WS]
 
Similar Threads
Difference between (Java to XML) binding and serialization, JAXB and XStream
JAX-RPC and JAX-WS
Is a synchronized (this) {} block sufficient here?
Why JAX-WS over JAX-RPC + JAXB
Jax-B