元素不允许:node @ http://schemas.xmlsoap.org/soap/envelope

时间:2018-02-23 14:56:06

标签: soap soapui xsd-validation

当我在SOAP UI中添加SOAP UI模式验证作为断言的一部分时,我收到以下错误:

Element not allowed: node@http://schemas.xmlsoap.org/soap/envelope in element Header@http://schemas.xmlsoap.org/soap/envelope

任何人都可以告诉我为什么会失败?以及如何解决这个问题?

验证了XML:

<soap:Envelope xmlns:ns0="urn:xeu:flux-transport:v1" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<soap:node datetime="2018-02-02T10:31:08.006Z">ABC</soap:processingNode>
</soap:Header>
<soap:Body>
<blah>
</blah>
</soap:Body>
</soap:Envelope>

WSDL(用于在SOAP UI中验证):

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:documentation>Version: 1.0</wsdl:documentation>
    <wsdl:types>
        <xsd:schema>    
            <import namespace="http://schemas.xmlsoap.org/soap/envelope/"   
        schemaLocation="http://schemas.xmlsoap.org/soap/envelope/" />
        </xsd:schema>
    </wsdl:types>
</wsdl:definitions>

任何帮助表示赞赏。

0 个答案:

没有答案