Web Services message protocol

Communities can use the Web Services message protocol to trade messages with partners. The Web Services framework enables you to send and receive SOAP messages with payloads:

The framework also supports WS-Security and WS-Addressing. Additionally, you can configure custom SOAP handlers to perform processing on SOAP messages. Possible processing operations include payload transformation, payload validation and WS header processing.

Architecturally, the Web Services framework passes messages through a chain of handlers. Each handler performs an action on a message. For example, for an inbound message the WS-Security handlers are responsible for decrypting and signature validation. For an outbound message, the WS-Security handlers are responsible for encryption and signature creation. Other handlers are responsible for other message actions. These actions are broken down into phases, with several pre-defined built-in phases such as pre-dispatch, dispatch, and so on. Each phase is a collection of handlers. Axis2 enables the user to choose the phases for the handlers, as well as the order of execution of handlers. You can also define handlers in a module that you plug into a running Axis2 system. One such module is Rampart, which provides an implementation of WS-Security.

Adding a transport in the delivery exchange wizard for the Web Services message protocol is just like setting up an HTTP exchange. For information see HTTP (embedded) trading configuration and HTTP (external) trading configuration.

Also see:

Related topics:

Payload packaging

Payload unpackaging

Message metadata

WS-Security handler

WS-Addressing handler

Default configuration

Web Services message protocol

Web Services transport user accounts

Payload packaging

The payload that is transported in a SOAP message can be located in the SOAP body, header, header and body, or packaged as a MIME attachment.

When packaging an outbound message, a decision must be made on where to place the payload. The packaging decision is specified as part your exchange agreement with your trading partner. By default outbound payloads are placed in the SOAP body of the packaged message. To specify that the payload should be packaged as an attachment, change the payload location field on the WebServices tab in the collaboration settings area of the user interface. Setting the payload location to none has the effect of not attaching the payload as an attachment or in the SOAP body. In the none case, you must configure a SOAP handler to attach the payload where desired. To do this you require the optional Interchange Software Development Kit.

To override the payload location collaboration setting in the user interface, set the metadata items named AxisShouldAddPayload and AxisAddPayloadAsAttachment.

The SOAP body can only contain XML payloads. Package other payload types and large XML payloads as attachments.

Related topics:

Payload unpackaging

Message metadata

WS-Security handler

WS-Addressing handler

Default configuration

Web Services message protocol

Payload unpackaging

An inbound SOAP message can have payloads in the SOAP body, header, header and body, or as attachments.

By default, the trading engine integrates payloads found in the SOAP body and integrates any MIME attachments. To disable the default SOAP body and attachment integration, use the Advanced tab of the Community Web Services delivery exchange modification page.

To override the payload integration values that you set on the Advanced tab, you can set override values for the AxisShouldIntegrateSoapBody and AxisShouldIntegrateAttachments message metadata attributes.

Related topics:

Payload packaging

Message metadata

WS-Security handler

WS-Addressing handler

Default configuration

Web Services message protocol

Message metadata

The following defines the message metadata elements.

Related topics:

Payload packaging

Payload unpackaging

WS-Security handler

WS-Addressing handler

Default configuration

Web Services message protocol

WS-Security handler

Activator uses Apache’s Axis2 implementation to handle the WS-Security for the SOAP messages. The Rampart module in Axis2 has WS-Security handlers to use for signing and encrypting SOAP messages and for validating signatures and decrypting.

The Rampart module supports signature and encryption operations on the SOAP envelope and Body. Axway added support for signature and encryption operations on SOAP attachments in the Rampart implementation. The Rampart module is defined under axis2.xml.

The collaboration settings area of the user interface allows configuration of signing and encryption parameters.

Related topics:

Payload packaging

Payload unpackaging

Message metadata

WS-Addressing handler

Default configuration

Web Services message protocol

WS-Addressing handler

Activator uses the Apache Axis2 implementation to handle the WS-Addressing for SOAP message.

Activator provides two versions of the Axis2 file:

To select the axis file version to use:

Related topics

Payload packaging

Payload unpackaging

Message metadata

WS-Security handler

Default configuration

Web Services message protocol

Default configuration

The default configuration of the Web Services message protocol enables trading of secure XML payloads between two instances of Activator. The default configuration is useful to get two instances of Activator trading quickly. Typically, users will need to modify the default configuration. This requires the use of the optional Interchange Software Development Kit.

Default packaging configuration

Under the default configuration for packaging:

Default unpackaging configuration

Under the default configuration for unpackaging:

Related topics:

Payload packaging

Payload unpackaging

Message metadata

WS-Security handler

WS-Addressing handler

Web Services message protocol

Related topics:

Payload packaging

Payload unpackaging

Message metadata

WS-Security handler

WS-Addressing handler

Default configuration

Web Services transport user accounts

Web Services exchanges can optionally require user names and passwords in a UsernameToken element in the SOAP header. Within communities, you can specify different types of Web Services user accounts: