Skip to main content

Relative endpoint address

The CXFServlet uses a relative address for the endpoint rather than a full http address. For example, given an implementation class called GreeterImpl with endpoints greeter and greeterRest, the relative endpoint addresses would be configured as:

<jaxws:endpoint id="greeter"
   implementor="org.apache.hello_soap_http.GreeterImpl"
   address="/Greeter1"/>

<jaxrs:server id="greeterRest"
   serviceClass="org.apache.hello_soap_http.GreeterImpl"
   address="/GreeterRest"/>

The cumulative result of these changes is that the endpoint address for the servlet will be: http://{server}:8040/services/Greeter1 and http://{server}:8040/services/GreeterRest

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!