wget和https soap消息的问题

时间:2013-06-27 16:45:25

标签: wget

我有以下要求......

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:msgs="<URL FOR NAMESPACE>">
   <soap:Header/>
   <soap:Body>
      <msgs:service>
       <value>true</value>
      </msgs:service>
   </soap:Body>
</soap:Envelope>

这可以从我的本地SoapUI中正常工作,但是,我需要在服务器上运行它,所以this我尝试了以下内容...

wget --post-file=test.xml --header="Content-Type: text/xml" --header="SOAPAction: \"service\"" <Service URL> -O response.xml

但我看到以下内容......

  

2013-06-27 12:37:07错误500:内部服务器错误。

从我研究过的所有内容中,这个服务器应该可以使用wget访问url和GET请求到?WSDL url。我是否需要更改我的内容类型或其他内容?

更新

来自WSDL的

......

<wsdl:operation name="service">
  <soap12:operation soapAction="pbq:TMP.service" style="document"/>
  ...

0 个答案:

没有答案