Petals-BC-SOAP

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

Changes (4)

View Page History
h2. Send a JBI message from an incoming SOAP message

The petals-bc-soap component can listen incoming SOAP messages and send messages to a JBI ServiceEndpoint. We say that the component consumes the JBI service :

{center}
!soap_consume.png!
{center}

todo
To expose a JBI service as Web Service, you need to deploy a service unit. The address extension value will be used as Axis2 Service name.

When a SOAP message is handled by the Axis2 Service, it is transformed into a JBI Message and sent to the JBI ServiceEndpoint configured in the Service Unit. The JBI message is created like this :
* The JBI operation is created from the SOAP action.
* Copy the SOAP body into the JBI one.
* Put the SOAP attachments into JBI ones.
* Put the SOAP header into the "SOAP.HEADER" JBI message property.

The component is configured to handle URIs with the {{http://HOST:PORT/petals/services/ADDRESS}} pattern. It also handles ?wsdl calls; the wsdl description is retrieved from the endpoint and sent back to the consumer.

{warning:title=Warning}
If the service does not provide a WSDL file; the component switch to a dirty mode and always considers that the requested service implements the requested operation. Then, It's the "JBI" container or the service itself which is in charge of verifying that this operation if actualy available.
{warning}

The list of services is available at {{http://HOST:PORT/petals/services/listServices}} URI.

h3. Service Unit descriptor