How to validate an XML response against the embedded schema in a WSDL

Questions about XML that are not covered by the other forums should go here.
csalsa
Posts: 97
Joined: Tue Apr 22, 2008 9:31 am

How to validate an XML response against the embedded schema in a WSDL

Post by csalsa » Mon Apr 02, 2012 6:09 am

Hi

I have a WSDL and I have a XML response that was sent to me but should be valid against the WSDL.

How can I use OxygenXML to validate the XML response against the embedded XML schema in the WSDL?

Radu
Posts: 7154
Joined: Fri Jul 09, 2004 5:18 pm

Re: How to validate an XML response against the embedded schema in a WSDL

Post by Radu » Mon Apr 02, 2012 10:25 am

Hi,

Oxygen can validate XML files against XML Schemas but not against XML Schemas which are embedded in WSDL files.
Am I to understand that this is the usecase for your other post, trying to extract the XML Schema from the WSDL file?

If you are the one designing the WSDL you could keep the XML Schema in a separate file and only reference it in the WSDL.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

csalsa
Posts: 97
Joined: Tue Apr 22, 2008 9:31 am

Re: How to validate an XML response against the embedded schema in a WSDL

Post by csalsa » Mon Apr 02, 2012 12:58 pm

Thanks Radu for your reply.

I found that I could do what I needed using SoapUI. First I loaded the WSDL and generated a sample request/response and then pasted the response that I received over the generated response. I could right-click and "validate..." the response.

Post Reply