Reputation: 10147
I can easily publish web services using javax.xml.ws.Endpoint. endpoint.publish(getURL()); I would like to know why I have to use real IP to publisg the webservice to remote. In otherwords.
when I use the URL httpp://localhost:1970/XXXService
XXService could not be connected from remote machines.
But when httpp://47.168.96.47:1970/XXXService
is used it could be connected from any machine remotely or locally.
Upvotes: 0
Views: 782
Reputation: 10147
I have found the solution over again stackoverflow. Here is the question/answer [link] Publishing a WS with Jax-WS Endpoint
I have neither use localhost nor real ip. Instead Ihave used 0.0.0.0. It works now, service could be published externally.
Upvotes: 1