users@jax-rpc.java.net

Multiple URLs pointing to same endpoint

From: Ryan LeCompte <Ryan.LeCompte_at_pangonetworks.com>
Date: Fri, 12 May 2006 10:54:15 -0400

Hello all,
 
I'm trying to specify the definition of a single endpoint, but with multiple URL's pointing to that endpoint. For example, I want a single endpoint to be accessible from /endpoints/endpointA and /endpoints/endpointA-Other. However, when I specify the entry in jaxrpc-ri.xml, the generated web.xml only has a mapping for one of the URls. Is there a way to do this with JWSDP 1.6?
 
Here is an example:
 
<webServices
   xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/dd"
   version="1.0"
   targetNamespaceBase="http://artima.com"
   typeNamespaceBase="http://artima.com"
   urlPatternBase="/ws">

  <endpoint
    name="sayhello"
    displayName="A Java Web service"
    interface="server.HelloImpl"
    implementation="server.HelloImpl"
    wsdl="/WEB-INF/HelloImplService.wsdl"/>

  <endpointMapping
    endpointName="sayhello"
    urlPattern="/sayhello"/>
  <endpointMapping
    endpointName="sayhello"
    urlPattern="/sayhello-etc"/>

</webServices>