You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Kumar <ba...@gmail.com> on 2005/08/02 13:03:24 UTC
client proxy domain, username, password configuration of service provider
Hi All,
I am trying to consume a web service which is on https. When I type
the endpoint address of the service in my IE browser I am getting a
login dialog where in I enter the username in the format <domain
name>\<user name> and password. These details are given by the
service provider and dont know what kind of authentication is this
(guess it is proxy authentication of the service provider. right ?) .
However I am basically behind a firewall and setting system properies
http.proxyHost, http.proxyPort in my client java program whcih uses
axis stubs to connect to the service. However at runtime I am getting
fault "(401)Unauthorized" from the service. Now how do I configure the
proxy username and proxy password of the service provider in my
client program. Please suggest ?
Thanks & Regards,
Kr.
Re: client proxy domain, username, password configuration of service provider
Posted by "Kr..............................Kr" <ba...@gmail.com>.
Hi Jeff,
Thank you for the response. It works. Now I get a different response
from the server.
Caused by: javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: No trusted certificate
found
at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)
at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:131)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:370)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:88)
... 12 more
Caused by: sun.security.validator.ValidatorException: No trusted
certificate found
at sun.security.validator.SimpleValidator.buildTrustedChain(SimpleValidator.java:304)
at sun.security.validator.SimpleValidator.engineValidate(SimpleValidator.java:107)
at sun.security.validator.Validator.validate(Validator.java:202)
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(DashoA6275)
at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(DashoA6275)
Does it mean I need to import the service provider certificate into my
client truststore ?
Thanks & Regards,
Kr.
Re: client proxy domain, username, password configuration of service provider
Posted by je...@cogentlogic.com.
AxisProperties.setProperty("http.proxyHost", "127.0.0.1");
AxisProperties.setProperty("http.proxyPort", "1234");
AxisProperties.setProperty("socks.proxyHost", "127.0.0.1");
AxisProperties.setProperty("socks.proxyPort", "1234");
Jeff
----- Original Message -----
From: "Kumar" <ba...@gmail.com>
To: <ax...@ws.apache.org>
Sent: Tuesday, August 02, 2005 7:03 AM
Subject: client proxy domain, username, password configuration of service
provider
Hi All,
I am trying to consume a web service which is on https. When I type
the endpoint address of the service in my IE browser I am getting a
login dialog where in I enter the username in the format <domain
name>\<user name> and password. These details are given by the
service provider and dont know what kind of authentication is this
(guess it is proxy authentication of the service provider. right ?) .
However I am basically behind a firewall and setting system properies
http.proxyHost, http.proxyPort in my client java program whcih uses
axis stubs to connect to the service. However at runtime I am getting
fault "(401)Unauthorized" from the service. Now how do I configure the
proxy username and proxy password of the service provider in my
client program. Please suggest ?
Thanks & Regards,
Kr.