SOAPUI mockservice不接受带有命名空间的请求

时间:2016-05-31 07:26:13

标签: soap namespaces soapui mockserver

在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>

实际上我想得到method2请求的响应。它没有验证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>

0 个答案:

没有答案