This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Services and the fly likes validating a soap message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "validating a soap message" Watch "validating a soap message" New topic
Author

validating a soap message

Paul Celona
Greenhorn

Joined: May 20, 2004
Posts: 15
how do I validate a soap message against a given .xsd file? Do I need to do this, or does soap take care of this for me? If soap doesn't validate against an xsd, should i use jaxb to do this?
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2053
Hi,

You are doing document-style web service call right?

You can use DOM or SAX to validate the SOAP payload (the xml that you have an xsd for). JAXB may be an overkill, unless you need to process the xml too, in object format.
Paul Celona
Greenhorn

Joined: May 20, 2004
Posts: 15
I would like to have the soap message parsed into a java object to pass back as a return value to a caller. It looks like the easiest way to do this is jaxb. the problem is that I have to take the soap message body and write an xml file, and then point jaxb to it.

At least that's what I think I have to do (or would like to do). Is there an easier way?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: validating a soap message