The moose likes Web Services and the fly likes Proxy Authentication using Axis Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Proxy Authentication using Axis" Watch "Proxy Authentication using Axis" New topic

Proxy Authentication using Axis

Ketan KC Chachad
Ranch Hand

Joined: Nov 23, 2003
Posts: 77
I am trying to access a webservice but my machine has to route the request to create a service through a proxy. I can execute WSDL2Java at command line by giving the -Dhttp.proxyHost and -Dhttp.proxyPort for the JVM and -U and -P options for WSDL2Java.
I want to do the same for a client program and so I tried setting the System properties with http.proxyHost, http.proxyPort, http.proxyUser and http.proxyPassword but that gives a IOException with message Server returned HTTP response code: 407 for URL <a href="http://....</b rel="nofollow">" target="_blank">http://....
I have also tried using Authenticator.setAuthenticator(MyAuthenticatorClass) and that gives the following response javax.xml.rpc.ServiceException: Error processing WSDL document: Connection timed out: connect[/B]
I also have tried using TransportClientProperties class and using the
command line VM option but this too results in the same output as given above.
Can anyone tell me what else can I do to get through the proxy to access the service/wsdl?

Regards,<br />Ketan KC Chachad
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Moving to the Web Services forum where the Axis gurus hang out.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Proxy Authentication using Axis
It's not a secret anymore!