如何根据 soupUI 中的自定义 XSD 验证部分响应?
在soapUI Pro 中,我想创建一个断言来根据自定义XSD 验证响应的指定XML 节点。我知道存在架构合规性断言,但我只想验证部分响应并针对自定义 XSD(不是来自 WSDL)。
In soapUI Pro I want to create an assertion to validate specified XML node of response against custom XSD. I know there is schema compliance assertion but I want to validate only part of response and against custom XSD (not from WSDL).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
需要脚本断言来加载部分响应并根据从文件加载的模式对其进行验证:
Script assertion is needed to load part of response and validate it against schema loaded from file:
如果您已收到响应消息,请执行以下操作以仅验证响应的部分内容:
您可以选择完整的节点或特定的元素和值。请点击此链接了解更多信息:
soapUI:验证 XML 消息
Providing you have received a response message do the following to validate only parts of the response:
You can select a complete node or specific elements and values. Follow this link for more information:
soapUI: Validating XML Messages