Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Apigee include xsds form resources saved to environment

Hello,

we have the following requirement: We have a main.xsd and a includethis.xsd. The main.xsd includes the includethis.xsd. We also have a shared flow that has a MessageValidation policy that references main.xsd in the ResourceURL attribute. Unfortunately we get the error "Failed to compile resource main.xsd".

If we do not deploy the main.xsd and the includethis.xsd in the policy its self, every thing works fine. So it seems that the compilation of the xsds does not resolve the included xsds if they are not part of the sharedflow resp. proxy.

Could someone give us guidance for our problem?

Best Regards.Jan

0 2 79
2 REPLIES 2

Hi @janeyni - if I understand you correctly, main.xsd and includethis.xsd are bundled as resources in the proxy, but the validation is done in the sharedflow? And it works if you bundle them in the sharedflow directly?  Thanks for any additional info you can provide.

Hello tyayers,

well yes if, I bundle them in the sharedflow, it works. But if I put them into the environment rather then into the sharedflow, it stops working. It can not compile anymore.