|Home > Apache Geronimo Knowledge Base > Index > FAQ > Web Services questions > How do I specify a different endpoint address for my Web Service?|
|How do I enable security for EJB Web Service?||Web Services questions||What is the endpoint address of my Web Service?|
The endpoint address for servlet-based JAX-WS Web Services is based on the context root of the web application and the <servlet-mapping> entry in the web.xml for the Web Service. Adjust these values in order to have a different endpoint address for your Web Service.
The endpoint address for EJB-based JAX-WS Web Service can be specified in the Geronimo-specific deployment descriptor using the <web-service-address> entry as show below:
EJB with the name "MyEjb" must of course be defined (either in the ejb-jar.xml file or properly annotated class must exist).
The <web-service-address> entry must specify an address that has at least two components.