axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pedro Quintas <>
Subject RE: HTTPS WebService through HTTP Proxy
Date Thu, 15 Oct 2009 08:05:56 GMT
I don't agreed with you.
The Client must know that on the other side (WebService) talks in HTTPS.

For example, I use SOAPUI to test this connections and again I put the TCPMon between the
SOAPUI and the proxy.
I saw in plaintext the communication with the proxy:

Proxy-Authorization: Basic dGVzdGU6dGVzdGU=
User-Agent: Jakarta Commons-HttpClient/3.1
Proxy-Connection: Keep-Alive

And Received from proxy this:

                HTTP/1.0 200 Connection established

At this time, I'm connect to the server.
>From here the difference starts, on my client all the communication continues in plaintext,
on SOAPUI all the communication is encrypted.

Is I use my client without the proxy setting all works fine (the communication is encrypted).

Any ideas?


De: Christian Gosch []
Enviada: quinta-feira, 15 de Outubro de 2009 08:18
Para: axis-user
Assunto: RE: HTTPS WebService through HTTP Proxy

I'm not quite sure, but shouldn't it be sufficient to talk to the proxy as required, and let
the proxy do whatever it is supposed to?

In other words: I think from an Axis client's view only the instance this client directly
talks to should matter. What happens there (immediate processing or forwarding forth and back
of the SOAP messages by means of a proxy or gateway) should not matter at all for the Axis

This applies to all aspects of the communication, i. e. ports, resource URLs, encryption,
authentication, authorization...



From: Pedro Quintas []
Sent: Thursday, October 15, 2009 2:00 AM
Subject: HTTPS WebService through HTTP Proxy
Importance: High


I need to call a HTTPS WebService  through a HTTP proxy.
I set on Options object the following:

                options.setProperty(HTTPConstants.CUSTOM_PROTOCOL_HANDLER, new Protocol("https",
(ProtocolSocketFactory)new AuthSSLProtocolSocketFactory(endpoint), 443));

                options.setProperty(HTTPConstants.AUTHENTICATE, authenticator);

                options.setProperty(HTTPConstants.PROXY, proxyProperty); // proxyProperty
have set ProxyName, ProxyPort, UserName, PassWord

And another options.
I put the TCPMon, between my program and the proxy to see what is send.

On TCPMon I see the connection made to the proxy and then to the HTTPS WebService, all in
plaintext and this is wrong because after the connection to the proxy, all data transmited
should been encrypted.

Any one already have this problem? How can I solve this?

Sorry for my bad English.


View raw message