我正在尝试在STS开发环境(Windows 7)中使用grails / groovy尝试将SOAP请求发送到服务器上的地址,如:
https://a.b.c.d:7551/services/ (因此应该在特定端口上进行安全通信)
我得到的是:
"CONNECT a.b.c.d:7551 HTTP/1.1"
"User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n]"
"Host: a.b.c.d:7551[\r][\n]"
"Proxy-Connection: Keep-Alive[\r][\n]"
"[\r][\n]"
"HTTP/1.1 502 Proxy Error ( The specified Secure Sockets Layer (SSL) port is not allowed. ISA Server is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests. )[\r][\n]"
"Via: 1.1 ISABA01[\r][\n]"
"Connection: close[\r][\n]"
"Proxy-Connection: close[\r][\n]"
"Pragma: no-cache[\r][\n]"
"Cache-Control: no-cache[\r][\n]"
"Content-Type: text/html[\r][\n]"
"Content-Length: 782 [\r][\n]"
"[\r][\n]"
with:
org.apache.axis2.AxisFault: Transport error: 502 Error: Proxy Error ( The specified Secure Sockets Layer (SSL) port is not allowed. ISA Server is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests. )
“有趣的部分” - 当我尝试使用Cygwin在同一地址发送相同的请求时 - curl:
REQUEST='curl -k -H "Content-Type: text/xml; charset=utf-8" -H "SOAPAction: GetService" -d @request -X POST https://a.b.c.d:7551/services/GetService'
eval RESPONSE=\$\($REQUEST\)
echo $RESPONSE
我得到了正确答案
我的网络正在使用代理(浏览器工作正常,在curl示例中没有特殊配置,STS可以连接到市场)
是否需要设置一些东西?
感谢您的帮助