WEB-INF/resin-web.xml

<web-app xmlns="http://caucho.com/ns/resin">
  <servlet-mapping url-pattern="/flickr/rest/*"
                   servlet-class="example.FlickrImpl"
                   jndi-name="service/FlickrImpl">
    <protocol type="rest">
      <jaxb-package>example.data</jaxb-package>
    </protocol>
  </servlet-mapping>

  <web-service-client jndi-name="rest/flickr">
    <url>rest:${webApp.url}/flickr/rest/</url>
    <interface>example.FlickrAPI</interface>
    <jaxb-package>example.data</jaxb-package>
  </web-service-client>
</web-app>