在 WinAutomation 中使用 Web 服务

问题描述

我正在尝试使用 Winautomation 中的 Inwoke Web 服务。

服务代码为:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:hel="http://learnwebservices.com/services/hello">
   <soapenv:Header/>
   <soapenv:Body>
      <hel:SayHello>
         <hel:HelloRequest>
            <hel:Name>John Doe</hel:Name>
         </hel:HelloRequest>
      </hel:SayHello>
   </soapenv:Body>
</soapenv:Envelope>

Webservice function in WinAutomation

我已尝试更改接受和内容类型值,但没有任何效果

我从网络服务得到的响应是

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Error reading XMLStreamReader: Unexpected character '%' (code 37) in prolog; expected '&lt;'

在 [row,col {unkNown-source}]: [1,1]

但是通话中没有%??

Web 服务调用在 SoapUI 中运行良好。

我错过了什么?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)