1

有人可以帮助在 SOAPUI 中接收时忽略 wsdl 验证。实际上我有两种相同请求的方法

Method 1:Generated out of SOAPUI using WSDL
--------
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">  <soapenv:Body>
<perfmonCollectCounterData>     
<Host></Host>
<Object></Object>
</perfmonCollectCounterData>
</soapenv:Body>
</soapenv:Envelope>

Method 2: This is with namespace
-------
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:PerfmonCollectCounterData soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://schemas.cisco.com/ast/soap/">        
<Host xsi:type="xsd:string"></Host>
<Object xsi:type="ns1:ObjectNameType"></Object>
</ns1:PerfmonCollectCounterData>
</soapenv:Body>
</soapenv:Envelope>

实际上,我想获得方法 2 请求的响应。它未能通过 WSDL 的验证。有人可以帮助忽略验证或如何处理 SOAPUI 的模拟服务以响应给定的 method2 请求。我可以得到 Method-1 的响应

从评论中更新问题以使其清楚

我们在soapUI 响应中看到的错误是这样的:

<soapenv:Envelope xmlns:soapenv="schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body> 
        <soapenv:Fault> 
            <faultcode>Server</faultcode> 
            <faultstring>Missing operation for soapAction [schemas.cisco.com/ast/soap/action/… and body element [perfmonCollectCounterData] with SOAP Version [SOAP 1.1]</faultstring> 
        </soapenv:Fault> 
    </soapenv:Body> 
</soapenv:Envelope>
4

0 回答 0