This chapter provides an overview of the message Schema Builder and describes how to:
Select and view data in the message Schema Builder.
Build message schemas for rowset-based messages.
Import message schemas for nonrowset-based messages.
Modify message schemas.
Delete message schemas.
The message Schema Builder enables you to build, import, modify and delete XML message schemas.
Note. The terms message schema, XML message schema, and schema are used interchangeably in this chapter.
To test message schemas during development, use the Schema Tester utility.
To enable runtime schema validation, use the Service Operations - General page to enable runtime validation for a service operation, or use the Service Schema Validation page to enable validation for several service operations at a time.
See Also
Using the Schema Tester Utility
Enabling Runtime Message Schema Validation
An XML message schema describes a model for the arrangement of tags and text in a valid XML document. A schema provides a common vocabulary for a particular application that exchanges documents.
You can use the Message Schema Builder to manage message schemas for rowset-based messages in the application database.
Note. You can also use the pages of the Message Builder component to manage rowset-based and nonrowset-based schemas. However, the Message Builder enables you to work with only one message schema at a time, whereas , the Message Schema Builder enables you to perform actions, such as building and deleting message schemas, on multiple messages at a time.
Note. You cannot use the Message Schema Builder to build schemas for message parts or container messages. You must use the Message Builder component to build schemas for these message types.
Rowset-Based Message Schemas
Use the Message Schema Builder to generate, regenerate, view or delete rowset-based message schemas.
You cannot regenerate or delete a rowset-based message schema that is a message part. Part and container schemas are automatically generated at save time so there's no need to explicitly regenerate or delete them.
Nonrowset-Based Message Schemas
Use the Message Schema Builder to import new nonrowset-based schemas into the database, modify existing nonrowset-based message schemas, or delete them.
Schemas for nonrowset-based message parts can be deleted or modified, but message parts should never be without a schema. After deleting a nonrowset-based message part, you should always import or enter a new schema for the message.
This section discusses how to:
Select data in the Message Schema Builder.
View message schema data details.
View XML message schema code.
Page Name |
Object Name |
Navigation |
Usage |
Schema Builder page |
IB_SCHEMABUILD |
Select PeopleTools, Integration Broker, Service Utilities, Message Schema Builder. |
Use this page to:
|
Schema Viewer page |
IB_SCHEMABUILD_SEC |
Click a message on the Schema Builder page. |
View the XML schema in the schema viewer. |
When you access the Message Schema Builder component (IB_SCHEMABUILD) the Schema Builder page displays a search engine to use to search for messages and message schema data with which to work and view.
To access the Schema Builder page, select PeopleTools, Integration Broker, Service Utilities, Message Schema Builder.
The Schema Builder page provides the following options for searching for data with which to work and view in the application database.
Message Name |
(Optional.) Click the Lookup button to locate a message definition with which to work. If you do not select a message name, the search will be based on all messages definitions in the application database. |
Owner ID |
(Optional.) From the Owner ID dropdown list, select the owner ID for the message definition. The owner ID helps to determine the application team that last made a change to a message definition. The values in the dropdown list box are translate table values that you can define in the OBJECTOWNERID field record. |
Schema |
Select from the following options in the Schema group box:
|
Structure |
Select from the following options in the Structure group box:
|
Search |
Click the button to search the database based on the criteria selected. |
When you search for data in the Schema Builder, message detail results appear in the Message Schemas grid.
Message |
Message name returned from the search of the application database. |
Message Version |
Version of the message returned from the search of the application database. |
Rowset-based |
Indicates the structure of the message. The valid values are:
|
Exists |
Indicates whether a schema has been built for the message. The valid values are:
|
Updated On |
Timestamp of the last update of the record. A new timestamp displays when a schema is generated or deleted for a message. |
Build Results |
Displays the results of actions performed on a schema. |
Build Selected Schemas |
Click the button to build schemas for the selected messages. |
Delete Selected Schemas |
Click the button to delete schemas that exist for the selected messages. |
If a message schema exists for a message, click the message name in the Message Schema grid to view the schema details.
Note. For easier viewing, highlight the data with your cursor.
Message schemas for rowset-based messages are read-only. You can edit message schemas for nonrowset-based messages.
This section discusses how to build message schemas for rowset-based messages.
Page Name |
Object Name |
Navigation |
Usage |
Schema Builder page |
IB_SCHEMABUILD |
Select PeopleTools, Integration Broker, Service Utilities, Message Schema Builder. |
Use this page to build message schemas for rowset-based messages. |
To build a message schema for a rowset-based message:
Access the Schema Builder page.
Search the application database for the message or messages for which to build schemas.
Check the box next to the message or messages for which to build schemas.
Click the Build Selected Schemas button.
When the schema is built successfully, a timestamp appears in the Updated On field and the Build Results field displays Successful Schema Insert.
This section discusses how to import message schemas for nonrowset-based messages.
Page Name |
Object Name |
Navigation |
Usage |
Schema Builder page |
IB_SCHEMABUILD |
Select PeopleTools, Integration Broker, Service Utilities, Message Schema Builder. |
Use this page to locate and select the message for which to import a schema. |
Schema page |
IB_SCHEMABUILD_SEC |
In the Message Schema results grid on the Schema Builder page, click the name of a nonrowset-based message. |
Import or enter XML schema for a nonrowset-based message. |
To import schemas for nonrowset-based messages:
Access the Schema Builder page.
Use the Message Schema Builder search engine to locate the message for which you want to import a schema.
In the Message Schema grid, click the message name link for the message for which you want to import a schema.
Import the schema.
Import a schema from a file.
You can import a schema from a file by using the Upload Schema from File button and selecting the file to import. After you import the file, the contents displays in the Schema text box.
Note. If you receive the error, “Error retrieving the file from database,” verify that one of the variables PS_FILEDIR or PS_SERVDIR is defined in the system variables on your machine.
Direct data entry.
You can also enter the schema directly in the Schema text box.
Click the Save button.
The Schema Builder page appears.
A timestamp appears in the Updated On field and the Build Results field displays Successful Schema Insert.
This section discusses how to modify message schemas.
Note. You can modify the content of message schemas built for nonrowset-based messages only.
To modify a schema, you can edit it directly in the Message Schema Builder, or you can export to make changes.
Page Name |
Object Name |
Navigation |
Usage |
Schema Builder page |
IB_SCHEMABUILD |
Select PeopleTools, Integration Broker, Service Utilities, Message Schema Builder. |
Use this page to locate and select the message that contains the message schema to modify. |
Schema page |
IB_SCHEMABUILD_SEC |
In the Message Schema results grid on the Schema Builder page, click the name of a nonrowset-based message. |
Import a new message schema or modify the existing XML schema for a nonrowset-based message. |
To modify a message schema:
Use the Message Schema Builder search engine to locate the message with which you want to work.
In the Message Schema grid, click the message name link.
A new page displays with the message schema populated in a text box.
Modify the schema as needed.
Modify the schema directly in the text box, or
Modify the schema in the editor of your choice.
Use your cursor to highlight the contents of the text box and use the keyboard command CTRL + C to copy the contents of the text box. Paste the contents into your editor using the keyboard command CTRL + V. Modify the content as needed. Import the content back into the Message Schema Builder using the instructions described previously in this chapter for importing message schemas for nonrowset-based messages.
Click the Save button.
The Schema Builder page displays and the Updated On field displays the date and time of the modification, and the Build Results field displays the results of the new schema build.
This section discusses how to delete message schemas.
You can delete message schemas using the Message Schema Builder page in the Message Schema Builder component (IB_SCHEMABUILD) or using the Message Schemas page in the Service Administration component (IB_HOME_PAGE).
Note. The Message Schema Builder page provides more comprehensive capabilities for searching for message schema.
You cannot delete a message schema when the message on which the schema is based is:
Referenced in a service operation.
Referenced as a message part in a container message.
A rowset-based message part.
A container message.
Referenced in an provided WSDL document.
Page Name |
Object Name |
Navigation |
Usage |
Schema Builder page |
IB_SCHEMABUILD |
Select PeopleTools, Integration Broker, Service Utilities, Message Schema Builder. |
Delete message schemas. |
Message Schemas |
IB_HOME_PAGE6 |
Select PeopleTools, Integration Broker, Service Utilities, Service Administrations. Click the Message Schemas tab. |
Delete message schemas. |
When deleting a schema using the Message Schema Builder page use only the Delete Selected Schemas button. Do attempt to delete message schemas by deleting content in the Schema text box in the schema details view; if you save the changes, PeopleSoft Integration Broker will attempt to validate the blank schema at runtime.
To delete a message schema:
Access the Message Schema Builder page.
Use the Message Schema Builder search engine to locate the message with which you want to work.
See Selecting Data in the Message Schema Builder.
The Schema Builder page appears.
In the Message Schema section, check the boxes next to the message names that contain schemas you want to delete.
Click the Delete Selected Schemas button.
The service system status that is set on the Service Configuration page affects the ability to delete message schemas.
See Understanding Configuring PeopleSoft Integration Broker for Handling Services.
To use the Message Schemas page to delete a message schema:
Access the Message Schemas page.
In the Message Name field, enter the name of the message that contains the schema to delete.
Click the Search button.
The results of the search appear in the Messages with Schema section.
Check the box next to each message that contains a schema to delete.
Click the Delete button.