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

how to validate soap with xsd

 
everson santos
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Anyone have an example of how validate a xml soap with xsd ??

i tried do it but i couldn't....

<xs:element name="Envelope" type="soap:Envelope" >
<xs:element name="soap:Envelope" type="xs:string" >

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:good="http://phpwebservice_producer/orderplaced">
<soapenv:Header/>
<soapenv:Body>
<goodrderPlaced>
<order_number>1111111</order_number>
<total>66666.8888</total>
</goodrderPlaced>
</soapenv:Body>
</soapenv:Envelope>





 
Naresh Chaurasia
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try following

2.2.3. Validating a SOAP Message Against a WSDL's XML Schema from the book java web services up and running by Marting Kalin.
 
Naresh Chaurasia
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Find the code attached

Java




XML


XSD


 
everson santos
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thanks Naresh!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic