HI在尝试使用soapUI时遇到错误; SOAP RESPONSE FAILED:这是我的请求xml,我只是在soapenv:body下复制粘贴这个xml,并且发送了一个请求,我还需要做其他的事情吗?
<holyrequest xsi:schemaLocation="http://www.mywebsite.com/xml/webservice Request.xsd"
xmlns="http://www.mywebsite.com/xml/webservice"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<state reached="false">
<value>Plan</value>
<myvariable>myplan</myvariable>
</state>
</holyrequest>
答案 0 :(得分:0)
将webservice的WSDL添加到soapUI项目中: http://www.soapui.org/Getting-Started/your-first-soapui-project.html
然后soapUI将生成您的演示请求,您可以看到所需的请求结构。
答案 1 :(得分:0)
我找到了;
<SOAP-ENV:Body>
<holyrequest xmlns="http://www.myservice.com/xml/webservice">
<state goalreached="false">
<value>PlanKB</value>
<goalvariable>myGoal</goalvariable>
</state>
</holyrequest>
</SOAP-ENV:Body>