XSD Validation

sheikbe
Participant I

I am trying to do XSD validation using SOAPMessageValidation policy. The main XSD has a reference to another XSD and the 2nd XSD have reference to 3rd XSD. I imported all 3 XSDs under resource section in proxy and gave <ResourceUrl> as main XSD. I am getting error as "Failed to compile <<Xsdname>>" while deployment.

I have used Notepad++ XML plugin to do XSD validation for the same XSD and it works fine. Please suggest why the error in Apigee edge

We are using Apigee SaaS paid account

1 1 189
1 REPLY 1

I think the SOAPMessageValidation policy does not handle validation against schema which include or import other schema.

To handle that case you will need to use the custom Java callout.

https://github.com/DinoChiesa/ApigeeEdge-Java-Xsd-Validation

But please note: It is not possible to refer to the XSDs in the /resources of your API Proxy, when you use this callout. You must refer to them in some other way. (See the README for details).