首页 > 代码库 > wget访问SOAP接口

wget访问SOAP接口

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

wget --header=Content-Type: text/xml;charset=utf-8 --post-data=http://www.mamicode.com/<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

 

wget访问SOAP接口