• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

validating a soap message

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic