Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Two Question [JAXB and JAX-WS]

 
Khaled Mahmoud
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
The following code snippet shows how perform validation when using JAXB to unmarshall XML data:

Best wishes!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic