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?