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
时间: 2024-11-10 13:46:29