Petals-BC-SOAP 5.1.0+

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

Changes (24)

View Page History
* An optional imported WSDL file describing the partner service

h1. Exposing an internal JBI service endpoint as a Web Service (SOAP over HTTP(S))

h2. As a web-service SOAP over HTTP(S)

In consumer mode, the component exposes an internal JBI service outside the bus to transfer incoming SOAP requests to the internal service.

{info}

h23. Usage

The petals-bc-soap component can listen incoming SOAP messages and send messages to a JBI service endpoint by deploying a Service Unit on it. The component consumes the JBI service:
{warning}

h23. Configuration

h34. Service Unit descriptor

An example of a Service Unit descriptor that exposes a Web Service over HTTP:
{table-plus:columnAttributes=,,style="text-align:center;",style="text-align:center;"}



|| Parameter || Description || Default || Required ||
| wsdl | Path to the WSDL document describing services and operations called by the JBI consumes defined in the SU. \\
{table-plus:columnAttributes=,,style="text-align:center;",style="text-align:center;"}






|| Parameter || Description || Default || Required ||
| service-parameters | Additional XML configuration for created Axis2 service as CDATA, same as the Axis2 services.xml file one. | | No |
{petalslink}

h34. Service Unit content

The Service Unit has to contain the following elements, packaged in an archive:
* The META-INF/jbi.xml descriptor file as described above

h1. SOAP over JMS
h2. As a web-service SOAP over JMS

By configuring the SOAP component and a Service Unit, it is possible to consume an internal JBI service.
{warning}

h23. Usage

The petals-bc-soap component can receive JMS messages from a JMS queue and send SOAP messages (contained in the JMS body message) to a JBI service endpoint by deploying a Service Unit on it. The component consumes the JBI service.
* Put the SOAP headers into the protocol header JBI message property.

h23. Configuration

h34. JMS server

A JMS server must be started before starting the BC SOAP component (if the JMS transport layer is configured). The compatible JMS servers are Joram and Apache ActiveMQ.

h34. Shared library

A shared library corresponding to the JMS server (SL-JMS-Joram or SL-JMS-ActimeMQ) must be installed in Petals ESB before installing the BC SOAP component in Petals ESB.

h34. Component descriptor

The JMS transport layer must be set in the component jbi.xml file (cf [SOAP component configuration|#componentConfiguration]):
{code}

h34. Service Unit descriptor

The JMS transport must be enabled in the Service Unit jbi.xml file:
When a message is sent to the JMS queue, it is received and treated by the SOAP component.

h1. Exposing an internal JBI service endpoint as h2. As a Web Service with WS-Security (UsernameToken)

h23. Configuration

h34. Service Unit descriptor

An example of a Service Unit descriptor that consumes a Web Service with a WS-Plicy based on UsernameToken:
{code}

h34. Service Unit content

The Service Unit has to contain the following elements, packaged in an archive:
* and the pcwbhandler.jar containing org.ow2.petals.test.PWCBHandler (quoted in the WS-Policy file - necessary to check the user and the password of the token)

h1. Exposing an internal JBI service endpoint as h2. As a Web Service with WS-Security (Signature and Encryption)

h23. Configuration

h34. Service Unit descriptor

An example of a Service Unit descriptor that consumes a Web Service with Timestamp, Signature and Encryption:
{code}

h34. Service Unit content

The Service Unit has to contain the following elements, packaged in an archive: