我可以使用CURL从Linux命令行调用Web服务。 现在我尝试使用wget来调用Web服务,但我总是收到以下错误: 500内部服务器错误。使用wget调用Web服务
我使用的语法如下:
wget http://<endPoint> --post-file=soapRequest.xml --header="Content-Type: application/soap+xml" --output-document=soapResponse.xml
凡soapRequest.xml包含XML请求(通过了SoapUI验证)。
错误从wget的返回是:
Connecting to <host:port>... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
2011-12-12 23:18:33 ERROR 500: Internal Server Error.
是的:如果我使用SoapUI提交相同的有效载荷,服务器给我一个正确的回应。 – matteogll