WEB-INF/resin-web.xml
<!-- - web.xml configuration file for the Hessian addition example. --> <web-app xmlns="http://caucho.com/ns/resin"> <servlet-mapping url-pattern="/hello/soap/*" jndi-name="service/HelloService" servlet-class="example.HelloServiceImpl"> <protocol type="soap"/> </servlet-mapping> <servlet-mapping url-pattern="/hello/hessian/*" servlet-class="example.HelloServiceImpl"> <protocol type="hessian"/> </servlet-mapping> <servlet-mapping url-pattern="/hello/rest/*" servlet-class="example.HelloServiceImpl"> <protocol type="rest"/> </servlet-mapping> <web-service-client jndi-name="hessian/HelloService"> <url>hessian:${webApp.url}/hello/hessian/</url> <interface>example.HelloService</interface> </web-service-client> <web-service-client jndi-name="rest/HelloService"> <url>rest:${webApp.url}/hello/rest/</url> <interface>example.HelloService</interface> </web-service-client> <web-service-client jndi-name="soap/HelloService"> <url>soap:${webApp.url}/hello/soap/</url> <interface>example.HelloService</interface> </web-service-client> </web-app>