I am new to web services and have a newbie question. Almost all the books/articles I read on web services
always intruduce the Enpoint.publish() method as a means of publishing a webservice.
My questions quite simply is, if I intended to create a web service, for testing/learning and package
that web service in a war file, then deploy it to Glassfish (say for example), is the Endpoint.publish(...)
If the Endpoint.publish(...) is not necessary given my scenario, then how does one specify/modify the desired
Hopefully someone understands my confusion
Thanks once again
No, the Endpoint class is not needed, in fact cannot be use, when publishing a web service to, for instance, GlassFish.
The address of the web service you deploy is determined by the server address and the context path of the "web application".
GlassFish even uses the address of the incoming request as the endpoint address in WSDL documents served to clients.
My web service is packaged in MyServiceApp.war and the name of the service is HelloService (as per the WSDL).
If I want to send a request to a local GlassFish instance to which this service has been deployed, I can use the following URL: