This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Proxy Authentication using Axis

 
Ketan KC Chachad
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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: java.net.ConnectException: Connection timed out: connect[/B]
I also have tried using TransportClientProperties class and using the -Dorg.apache.axis.components.net.TransportClientProperties=MyTransportClientProperties
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?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Web Services forum where the Axis gurus hang out.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic