Hi, I have jax-ws web service on mt local host. I also have the client on the local host. On my machine the client consumes the service fine. But when I am behind proxi and the service is consumed from remote host it doesn't work. The interesting thing is that you can access the wsdl on the browser on the remote host but when you run the client it's communication error.
This is probably because your browser is setup correctly with proxy settings so it can show wsdl but your client isn't so it doesn't work.
To fix this issue, most runtimes provide passing properties at the time of code generation, something like -Dproxy.httpHost=yourPproxyHost -Dproxy.httpPort=yourProxyPort Check the documentation of your runtime to see what properties to pass.
You may also be able to do this in code System.getProperties().setProperty("http.proxyUser ", userid); But again, your runtime should dictate the name of the property to use. Remember to set username and password properties as well if the proxy requires authentication