私は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 はマーケットプレイスに接続できます)
何かを設定する必要がありますか?
手伝ってくれてありがとう