This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 76
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
It is sorta covered in the JavaRanch Style Guide.
subject: Proxy Authentication using Axis
Similar Threads
client implementation with Axis2
JAX-RPC client side programming
reading soap-envelop messages
APACHE soap api vs SUN API
Proxy Authentication using Axis