|
| Home > Apache Geronimo Development > Index > JAX-WS |
For Servlet-based JAX-WS web services deployed without web.xml the default endpoint address is: /webAppContext/@WebService.serviceName.
For EJB-based JAX-WS web services the default endpoint address is: /@WebService.serviceName/@WebService.name.
The easiest way to figure out the endpoint address of the deployed web service is to look at the log file. Search the var/log/geronimo.log file for a message starting with "Configuring JAX-WS Web Service" or "Configuring EJB JAX-WS Web Service". The log message will contain endpoint address of the deployed web service.
Since the Servlet-based JAX-WS web services are always published under the web application context, you can only override the second part of the default address by creating a web.xml file with appropriate <servlet/> and <servlet-mapping/> entries.
For EJB-based JAX-WS web services you can override the endpoint address using the Geronimo deployment descriptor. Use the <web-service-address/> entry to set the desired address. For example, assuming you have an EJB named MyEJB (which is also a web service) create or edit META-INF/openejb.xml file and add the following:
<openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1">
<enterprise-beans>
<session>
<ejb-name>MyEJB</ejb-name>
<jndi-name>MyEJB</jndi-name>
<web-service-address>/MyEJB/ejb</web-service-address>
</session>
</enterprise-beans>
</openejb-jar>