0

我正在尝试在 STS 开发环境(Windows 7)中使用 grails / groovy 尝试将 SOAP 请求发送到地址上的服务器,例如:

https://abcd: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]"

和 :

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 可以连接到市场)

是否需要设置一些东西?

感谢帮助

4

0 回答 0