Petals-BC-REST 1.x

compared with
Version 3 by Nicolas Oddoux
on Sep 22, 2010 10:00.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (10)

View Page History

The REST component is based on Restlet, Jersey, Resteasy, CXF or Axis2 (TBD). It provides the following features:
* Expose Restful Web Services as JBI Services
* Expose Restful Web Services as JBI Services using a WADL
* Expose Restful Web Services as JBI Services using a WSDL 2.0
{info}

REST is a style of software architecture not a standard. If you want more details about REST, you can consult the Wikipedia page: [http://en.wikipedia.org/wiki/Representational_State_Transfer]

{info}

h3. With no description of the RESTful Web Service

The REST message is created like this:
The REST message is created according the HTTP method defined in the :
* The JBI message payload is wrapped in the SOAP body
* The JBI message attachments are used to create SOAP ones
* The JBI message exchange operation is used to create the SOAP action
* The JBI MEP is used to determine the SOAP MEP

h3. With a WADL



|| Attribute || Description || Default value || Required ||
| address | Address of the external Web Service to send JBI messages to. | | {center}Yes{center} |
| http-method | HTTP method to use.\\
\\
Possible values are: GET for the HTTP method GET, POST for the HTTP method POST, PUT for the HTTP method PUT and DELETE for the HTTP method DELETE.\\ | | {center}Yes\*{center} |
| wadl | WADL which defines the partner service | | {center}Yes\*{center} |
| wsdl2 | WSDL2 which defines the partner service | | {center}Yes\*{center} |
{table-plus}

*Only one of these extensions must be used and is required in a specific SU.

h3. Service Unit descriptor




|| Attribute || Description || Default value || Required ||
| service-name | Web Service name to expose. | | {center}No{center} |