0

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.

leppie
  • 115,091
  • 17
  • 196
  • 297
Ahmet Karakaya
  • 9,899
  • 23
  • 86
  • 141

1 Answers1

1

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.

Community
  • 1
  • 1
Ahmet Karakaya
  • 9,899
  • 23
  • 86
  • 141