This chapter discusses how to:
Select service operations.
View defined message schemas.
Enable runtime message schema validation.
PeopleSoft Integration Broker enables you to validate, at runtime, the messages defined in service operations against message schemas.
Validating messages against message schemas can ensure that during integration development, no changes or deletions were inadvertently made to the message. You can use schema validation on outbound and inbound messages, provided that you enable schema validation.
During runtime schema validation, PeopleSoft Integration Broker checks messages to ensure that the XML structure is valid according to the specified message schema. If Integration Broker encounters a service operation with a message structure that does not adhere to the specified message schema, message delivery fails and Integration Broker generates an error message. You can view the error details on the source application server, using the Asynchronous Details page or Synchronous Details page in the Service Operations Monitor.
When schema validation is enabled the structure of a message cannot be changed.
Before you can enable schema validation, you must build or import a message schema for the message and message version.
If no message schema is present for service operations that contain regular nonrowset-based messages or container messages, it is not possible to enable validation.
For service operations that contain rowset-based messages, the system will attempt to generate a schema if one is missing. If the system is able to successfully generate a message schema for a rowset-based message, validation is enabled.
This section discusses how to select service operations that contain messages to validate against message schemas at runtime.
Page Name |
Object Name |
Navigation |
Usage |
Service Schema Validation page |
IB_SERVICEVAL |
Select PeopleTools, Integration Broker, Service Utilities, Service Schema Validation. |
Use the page to:
|
The first step to enabling runtime message schema validation is to select the service operations that contain the messages to validate.
When you access the Service Schema Builder component (IB_SERVICEVAL), the Service Schema Validation page appears and displays a search engine that you use to search for service operations.
To access the Service Schema Validation page select PeopleTools, Integration Broker, Service Utilities, Service Schema Validation.
To search for a service operation, enter the service or service operation with which to work and click the Search button. A list of results displays in the Service Operations grid. If you do not enter any search criteria and click the Search button, the system returns all services and service operations in the database.
When you search for service schema validation data, the system returns the results in the Service Operations grid shown in the following example:
Service |
Indicates the name of the service. |
Service Operation |
Indicates the name of the service operation. |
Version |
Indicates the version of the service operation. |
Validation |
Indicates if runtime schema validation is enabled. When the check box is checked, schema validation is enabled. |
Results |
Displays validation results. The valid values are:
|
Schema |
Click the link to access message schemas for all messages defined on the service operation. |
This section discusses how to view defined XML schemas for messages.
Page Name |
Object Name |
Navigation |
Usage |
Service Schema Validation page |
IB_SERVICEVAL |
Select PeopleTools, Integration Broker, Service Utilities, Service Schema Validation. |
Search for a service operation that contains messages that have generated XML schemas to view. |
Schema Builder page |
IB_SCHEMABUILD |
Click the Schema link in the results grid of the Service Schema Validation page. |
Select XML schemas to view. |
Schema page |
IB_SCHEMABUILD_SEC |
Click a message name on the Schema Builder page. |
View the XML schema for a message. |
To view defined message schemas for all messages contained in a service operation, in the Service Operations grid, locate a service operation with which to work and click the Schema link.
The systems displays the service operation in the Schema Builder page. The following example shows the Schema Builder page displaying two messages for the MCFEM_REQ_MKFOLDER service operation.
The Exists field displays a value of Yes for both messages and indicates schemas have been built for both messages.
If schemas are not built for a message or messages, you can build them directly from this page by selecting the check boxes next to each message name and clicking the Build Selected Schemas button.
To view the XML schema for a message, click the message name link. The following example shows the XML schema for the MCFEM_REQ_MKFOLDER message.
To return to the Schema Builder page, click the Return button.
Using the Schema Builder page is documented in detail elsewhere in this PeopleBook.
See Also
This section discusses how to enable runtime schema validation for all messages defined in a service operation:
Page Name |
Object Name |
Navigation |
Usage |
Service Schema Validation page |
IB_SERVICEVAL |
Select PeopleTools, Integration Broker, Service Utilities, Service Schema Validation. |
Enable runtime message schema validation for all messages defined in a service operation. |
Service Operations page |
IB_SERVICE |
Select PeopleTools, Integration Broker, Integration Setup, Service Operations. |
Enable runtime message schema validation for all messages defined in a service operation. |
You can enable runtime message schema validation from the Service Schema Validation page or from the Service Operations page.
Using the Service Schema Validation Page to Enable Runtime Message Schema Validation
To enable runtime schema validation using the Service Schema Validation page:
Access the Service Schema Validation page.
Select a service operation that contains messages against which you want to validate message schemas.
Check the Validation check box.
Click the Save button.
Using the Service Operations page to Enable Runtime Message Schema Validation
To enable runtime schema validation using the Service Operations page:
Access the Service Operations page.
In the Default Service Operation Version section of the page, check the Runtime Schema Validation check box.
Click the Save button.