PeopleSoft-to-webMethods Communications
Overview
This chapter provides instructions for creating PeopleSoft-to-webMethods (outbound) transaction services. To create PeopleSoft-to-webMethods transactions, you must set up your PeopleSoft Web server for outbound transactions, and you must set up your Integration Server to handle the messages as they arrive from PeopleSoft. This chapter provides detailed instructions for those steps. Additionally, this chapter provides information about how to configure your PeopleSoft system to communicate to the Integration Server using SSL, and describes how to monitor your outbound PeopleSoft request messages at run time.
For a detailed description of PeopleSoft-to-webMethods communications, see PeopleSoft-to-webMethods Communications.
Setting Up the PeopleSoft Web Server for Outbound Transactions
To set up the PeopleSoft Web server to enable outbound communications to webMethods, perform the following steps:
| Step | See |
|---|---|
| 1 | Creating Messages for Use with the Adapter for PeopleSoft |
| 2 | Configuring the Integration Gateway |
| 3 | Configuring a Node |
| 4 | Writing a PeopleCode Program for use with PeopleSoft Events |
Creating Messages for Use with the Adapter for PeopleSoft
For PeopleSoft-to-webMethods communications, you must have a request message for outbound asynchronous transactions and you must have a request message and a reply message for outbound synchronous transactions.
You can use existing messages or you can create new messages. Use the PeopleSoft Application Designer to create the messages and their properties. See the PeopleBooks documentation for information about creating messages.
Configuring the Integration Gateway
About this task
To configure the Integration Gateway to communicate with webMethods
Procedure
Configuring a Node
About this task
Define a Node
About this task
Use an Existing Node
About this task
To define a node by using an existing node
Procedure
Use a New Node
About this task
To define a node by adding a new node
Procedure
Define a Connector
About this task
To define a connector
Procedure
Test the Node
About this task
To ping the node
Procedure
- From the PeopleSoft menu, click Integration Broker > Monitor Messages.
- Select the Node Status tab.
- In the Message Node Name field, specify the node name and then click Ping Node.
Define a Transaction
About this task
To define the node’s transaction
Procedure
Results
| Name | Value |
|---|---|
| Node | WEBM_NODE |
| GatewayID | LOCAL |
| ConnectorID | HTTPTARGET |
| Transactions | OutSync |
| Request Message | REP_SYNC, version_1 |
| Response Message | WEBM_REPLY, version_1 |
Define a Service Operation
About this task
To define the node’s service operation
Procedure
Results
| Name | Value |
|---|---|
| Node | WEBM_NODE |
| GatewayID | LOCAL |
| ConnectorID | HTTPTARGET |
| Service Operation | WEBM_SO |
| Routing Name | WEBM_ROUTING |
Writing a PeopleCode Program for use with PeopleSoft Events
About this task
For the Adapter for PeopleSoft's outbound transactions, you use the PeopleCode Editor to create a PeopleCode program for use with the component's SavePreChange or SavePostChange event. PeopleSoft calls SavePreChange events before any database updates and calls SavePostChange events after any database updates.
For an overview of how the Adapter for PeopleSoft uses PeopleCode programs, see PeopleSoft-to-webMethods Communications. For more details on PeopleCode events, see your PeopleSoft documentation.
To create a PeopleCode Program that sends a message to the node
Procedure
Using the Adapter for PeopleSoft's Sample and Utility Services
After you set up your PeopleSoft Web server to send messages to the Integration Server, you must handle those messages (for example, accept the XML documents and then send reply messages to PeopleSoft, if required) as they are received by the Integration Server.
You can create your own services in the Integration Server to handle the messages, or you can use the sample flow service wm.adapter.peoplesoft.outbound.sample:receiveXML, which is provided in the WmPeopleSoftAdapter package, to handle the messages.
The wm.adapter.peoplesoft.outbound.sample:receiveXML flow service consists of the following services:
| Service Name | Description |
|---|---|
| wm.adapter.peoplesoft.outbound.sample:getXML | Sample Java service that receives XML messages (for example, a REP_SYNC message) into a String. |
|
wm.adapter.peoplesoft.outbound.sample:getDBTableName
wm.adapter.peoplesoft.outbound.sample:mergeData |
Sample Java services that extract fields from received XML messages. |
| wm.adapter.peoplesoft.outbound.sample:createReplyXML | Sample Java service that creates a response message (for example, WEBM_REPLY), in the XML format required by PeopleSoft. |
|
pub.web:stringToDocument
pub.web:documentToRecord |
Built-in services that convert a string to a record. |
| pub.flow:setResponse | A built-in service that sends a response document back. |
The adapter also provides the following utility services in the WmPeopleSoftAdapter package:
| Service Name | Description |
|---|---|
| wm.adapter.peoplesoft.outbound.utils:testSetResponse | Tests the response XML. |
| wm.adapter.peoplesoft.outbound.utils:encoding | Encodes the username and password. |
To use the sample services, you must modify the services for your specific outbound transactions. The samples contain comments that illustrate where you need to update them. For more information about outbound transactions, see PeopleSoft-to-webMethods Communications.
Using SSL to Communicate with the Integration Server
About this task
The following configuration needs to be done on your PeopleSoft system. For detailed instructions on how to implement SSL encryption in PeopleSoft, see the PeopleBooks PeopleSoft Integration Broker document.
Before you set up your PeopleSoft system to use SSL to communicate with the Integration Server, you must first configure the Integration Server to enable an HTTPS port. If you need instructions for setting up an HTTPS port, see the IBM webMethods Integration Server Administrator’s Guide for your release.
To use SSL to communicate with the Integration Server running on an HTTPS port
Procedure
Monitoring PeopleSoft Request Messages
About this task
To monitor messages sent from PeopleSoft to webMethods