wood burning stoves 2.0*
The moose likes Web Services and the fly likes how to validate soap with xsd Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "how to validate soap with xsd" Watch "how to validate soap with xsd" New topic
Author

how to validate soap with xsd

everson santos
Ranch Hand

Joined: Jul 11, 2009
Posts: 50

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

Joined: May 18, 2005
Posts: 356
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.


SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
Naresh Chaurasia
Ranch Hand

Joined: May 18, 2005
Posts: 356
Find the code attached

Java




XML


XSD


everson santos
Ranch Hand

Joined: Jul 11, 2009
Posts: 50

Thanks Naresh!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to validate soap with xsd
 
Similar Threads
Validating a SOAP document using XSD
need to add namespace ns2: in the all webservices response tags.
Axis2 parameter ordering is wrong when not all elements are not passed
SOAP body - multiply choice parts
Cannot find dispatch method for {http://www.ivan.com/additionservicetypes}addValuesRequest