wget访问SOAP接口

SOAP协议主要是XML交互,所以其访问过程类似于这样:

wget --header='Content-Type: text/xml;charset=utf-8' --post-data='<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header>
   </soapenv:Header>
   <soapenv:Body>
   </soapenv:Body>
</soapenv:Envelope>' http://remotehost:8080/webservice/dosomething?wsdl -O result.xml

 

posted @ 2014-12-30 12:51  lichmama  阅读(526)  评论(0编辑  收藏  举报