简体   繁体   English

Azure Api 管理 Xml 架构验证

[英]Azure Api Management Xml schema validation

Is there a way to validate schema XML request and response with XSD file directly inside Azure API Management?有没有办法直接在 Azure ZDB974238714CA8DE634A7A 管理中使用 XSD 文件验证架构 XML 请求和响应? I'm using Azure functions to create response.我正在使用 Azure 函数来创建响应。 Or only way to do so is to use Logic apps, or validate schema inside Azure function?或者唯一的方法是使用逻辑应用程序,或验证 Azure function 中的架构?

No you cant perform the validation inside the api management because the policy engine does not support System.Xml.Schemas namespace.不,您不能在 api 管理中执行验证,因为策略引擎不支持 System.Xml.Schemas 命名空间。 Easiest and cheapest way for this to be done is inside an Azure function.最简单和最便宜的方法是在 Azure function 内完成。 PS: All the namespace supported by the policy engine are available at following link https://docs.microsoft.com/en-us/azure/api-management/api-management-policy-expressions#CLRTypes PS:策略引擎支持的所有命名空间都可以在以下链接中找到 https://docs.microsoft.com/en-us/azure/api-management/api-management-policy-expressions#CLRTypes

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM