WebSphere

Validating messages

Validate messages against their schema.

About this task

If your goal is to validate messages against their schema, you can achieve this by creating mediation modules that contain the Validate input property.
Figure 1. Actor (service requester) and system (ESB)
Messages can be validated against their schema using mediation primitive properties.
To validate messages against their schema complete the following steps.
Note: these steps provide an overview, they do not include all instructions for creating a complete mediation module. For complete instructions on how to construct a mediation module refer to the WebSphere® Integration Developer documentation.
Procedure
  1. The integration developer creates and exports a mediation module by completing the following steps.
    1. Create and configure a mediation module containing a mediation primitive with the Validate input property. Use WebSphere Integration Developer to create a mediation module. Click this link to go to the topic for WebSphere Integration Developer.
    2. Ensure that you can control message validation from the runtime administrative console. Promote the Validate input property. WebSphere Integration Developer lets you promote mediation primitive properties so they are visible from the runtime administrative console as module properties. You give alias names to promoted properties; and it is the alias names that are displayed on the runtime administrative console.Click this link to go to the topic for WebSphere Integration Developer.
    3. Export the mediation module. From WebSphere Integration Developer export the mediation module as an EAR file. Click this link to go to the topic for WebSphere Integration Developer.
  2. The runtime administrator deploys and administers the mediation module by completing the following steps.
    1. Deploy the mediation module. Use the runtime administrative console to install the EAR file as a new application. If you have promoted the Validate input property, you can change its value during deployment. Click this link to go to the topic for WebSphere ESB. Click this link to go to the topic for WebSphere ESB for z/OS. Click this link to go to the topic for WebSphere Process Server. Click this link to go to the topic for WebSphere Process Server for z/OS.
    2. Check that message validation is set. You can check and set the values of promoted properties using the runtime administrative console. You can control message validation by turning the Validate input property on and off. Click this link to go to the topic for WebSphere ESB. Click this link to go to the topic for WebSphere ESB for z/OS. Click this link to go to the topic for WebSphere Process Server. Click this link to go to the topic for WebSphere Process Server for z/OS.
    3. Start the application associated with the mediation module. Use the administrative console to start the application associated with the SCA module (mediation modules are types of SCA modules). Click this link to go to the topic for WebSphere ESB. Click this link to go to the topic for WebSphere ESB for z/OS. Click this link to go to the topic for WebSphere Process Server. Click this link to go to the topic for WebSphere Process Server for z/OS.

Results

When a service request invokes your mediation module, messages are validated against their schemas at the points where validation is requested.

Example

Figure 2. Message validation using the Database Lookup and Message Element Setter mediation primitives
Database Lookup and Message Element Setter mediation primitives with Validate input property of true

task Task topic

Terms of use | Feedback


Timestamp icon Last updated: 20 June 2010 00:38:51 BST (DRAFT)


http://publib.boulder.ibm.com/infocenter/dmndhelp/v6r2mx/topic//com.ibm.websphere.wbpm.scenarios.esb1.620.doc/tasks/twesb_usecasevalidatingmsgs1.html
Copyright IBM Corporation 2005, 2010. All Rights Reserved.
This information center is powered by Eclipse technology (http://www.eclipse.org).
iDoc on