小编mat*_*gll的帖子

使用wget调用Web服务

我可以使用CURL从Linux命令行调用Web服务.现在我尝试使用wget来调用Web服务,但我总是收到以下错误: 500内部服务器错误.

我使用以下语法:

wget http://<endPoint> --post-file=soapRequest.xml --header="Content-Type: application/soap+xml" --output-document=soapResponse.xml
Run Code Online (Sandbox Code Playgroud)

其中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.
Run Code Online (Sandbox Code Playgroud)

web-services wget

12
推荐指数
2
解决办法
6万
查看次数

标签 统计

web-services ×1

wget ×1