Service Tags
Resin 3.1

Documentation
Examples
Changes

Overview
Installation
Configuration
Quercus
SOA/IoC
JSP
Servlets and Filters
Admin (JMX)
EJB
Amber
Security
Performance
Hessian
XML and XSLT
Third-party
Troubleshooting/FAQ

tags
Common Tasks
Relax Schema
howto
Config FAQ
Scrapbook
DB Scrapbook

env tags
<resin>
<cluster>
<server>
port tags
<host>
<web-app>
<database>
session tags
rewrite tags
service tags
log
el variables
el control
rewrite tags
tags
log

Resin's provides web service support with <web-service> and <web-service-client> for multiple protocols: REST, SOAP, Hessian, VM.

<servlet>
child of web-app

The <servlet> tag can configure a bean as a service. If the servlet-class has the @WebService annotation, the service will be exposed as a service. The service can receive request from multiple protocols, including REST, SOAP, Hessian, and direct local-JVM calls. The service will normally be configured with IoC.

See the hello world tutorial for an example.

servlet-classDefines the implementation class for the web-servicerequired
protocolSelects and configures the web-service protocol.
jndi-nameSpecifies the jndi-name to store the web service for lookup by local-JVM clients.
<web-service-client>
child of web-app

<web-service-client> configures a proxy to a web-service. It uses a Java interface and a URL to select the web-service.

The URL is defined as: encoding:location, where location is typically a HTTP URL.

See the hello world tutorial for an example.

hessian:http://foo.com/hello/hessianDefines a hessian service at http://foo.com/hello/hessian
rest:http://foo.com/hello/restDefines a REST service at http://foo.com/hello/rest
soap:http://foo.com/hello/soapDefines a REST service at http://foo.com/hello/soap
web-service-client
element web-service-client { jndi-name & url & interface }

rewrite tags
tags
log
Copyright © 1998-2006 Caucho Technology, Inc. All rights reserved.
Resin ® is a registered trademark, and Quercustm, Ambertm, and Hessiantm are trademarks of Caucho Technology.