wget访问SOAP接口

时间:2023-03-10 02:21:32
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