Having
Endpoint.publish("http://xxx.xxx.xxx.xxx:8080/someplace", someObject);
1- There is any case where make sense to use Endpoint.publish out of a Web Container?(e.g. I have seen many people using it in a main process)
2- When we use Endpoint.publish inside a Web Container(so server has its own IP address). Why we have to set IP address instead of using localhost?
Endpoint.publish("http://216.123.456.457:8080/someplace", someObject);
instead of
Endpoint.publish("http://localhost:8080/someplace", someObject);
3- Does it make sense to try to publish a Webservice in a different place than localhost(that is actually the server machine executing this)?