Skip Headers
Oracle® Application Server Adapter for PeopleSoft User's Guide
10g Release 3 (10.1.3.1.0)

Part Number B28997-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

5 ESB Integration Examples

This chapter contains the following examples:

The scenarios shown in this chapter require the following prerequisites.

Prerequisites

The following are installation and configuration requirements:

See Also:

Oracle Application Server Adapter Installation Guide

The examples in this chapter present the configuration steps necessary for demonstrating service and event integration with PeopleSoft. Prior to using this material, you must be familiar with the following:

Overview of InterConnect Integration

ESB provides a comprehensive application integration framework. OracleAS Adapter for PeopleSoft used in conjunction with ESB enables you to seamlessly integrate enterprise software, eliminating the need to write custom code. Functional modeling, as opposed to custom coding solutions, allows for software reuse and reduces the complexity and management challenges that arise over the software lifecycle. This integration model consists of two components--high-level integration logic and low-level platform services.

Adapter integration with OracleAS ESB is a two-step process:

  1. Design Time: OracleAS Adapter for PeopleSoft is configured in Application Explorer for services and events, as described in Chapter 2, "Configuring OracleAS Adapter for PeopleSoft". Integration logic is modeled in iStudio. Metadata are stored in repositories.

  2. Runtime: The underlying platform treats this metadata as runtime instructions to enable the communication between participating applications.

Namespace Requirements

The purpose of an XML namespace is to allow the deployment of XML vocabularies (where element and attribute names are defined) in a global environment and to reduce the risk of name collisions in a given document when vocabularies are combined. Qualified namespaces are used for stricter schema validation. In documents conforming to this specification, element and attribute names appear as qualified names. Syntactically, they are either prefixed names or unprefixed names. An attribute-based declaration syntax is provided to bind prefixes to namespace names and to bind a default namespace that applies to unprefixed element names. These declarations are scoped by the elements on which they appear so that different bindings may apply in different parts of a document. Processors conforming to this specification must recognize and act on these declarations and prefixes.

In the 10.1.3.1.0 SOA release, the recommendations for ESB integrations is to perform stricter name space validations. As a result, Application Explorer generates Web services for the backend with the namespace marked as ÒQualifiedÓ. This means that during testing or usage phases of this service by ESB, the request XML document that is used should adhere to the schema and WSDL document. Once again, it is important to remember that the namespaces are qualified. To further understand this point, the difference is illustrated with the following example:

  1. Input XML for ESB based on unqualified namespaces:

    <?xml version="1.0" encoding="UTF-8"?><PS8>    <component perform="browse">LOCATION</component>    <key name="Setid">SHARE</key>    <key name="Location">ALBERTA</key> </PS8>
    
  2. Input XML for ESB based on qualified namespaces:

    <PS8 xmlns="urn:iwaysoftware:adapter:peoplesoft:ci">  <component perform="find">LOCATION</component>  <key name="Setid">SHARE</key>  <key name="Location">ALBERTA</key></PS8>
    

Note: If you are passing an unqualified input against a WSDL document that is expecting qualified namespaces, ESB will throw the exception as ÒUnable to process input xml...."

Configuring an ESB Outbound Process

The following example describes how to configure an ESB outbound process to your PeopleSoft system, using an ESB project in Oracle JDeveloper.

Prerequisites

Before you proceed, you must create an outbound WSDL file for the adapter by using the following steps:

  1. Create a target using Application Explorer.

  2. Connect to the target.

  3. Create a WSDL file.

  4. Restart the Oracle Application Server.

Creating an Outbound ESB Project and Assigning an Outbound WSDL File

  1. At the top of the upper left pane, click the Applications Navigator tab.

    Applications Navigator
    Description of the illustration esb_out1.gif

  2. Right-click an application node that you created and select New Project.

    The New Gallery window is displayed.

    New Gallery window
    Description of the illustration esb_out2.gif

  3. From the Items list, select ESB Project and click OK.

    The Create ESB Project dialog box is displayed.

    Create ESB Project dialog box
    Description of the illustration esb_out3.gif

  4. Perform the following steps:

    1. Specify a name for the ESB project.

      The Directory Name field and Diagram Name fields are updated automatically.

    2. Click OK.

    The ESB project is added at the top of the upper left pane.

    ESB project added
    Description of the illustration esb_out4.gif

  5. Right-click the ESB project in the middle pane, select Create ESB Service followed by Custom Adapter.

    The Create Adapter Service dialog box is displayed.

    Create Adapter Service dialog box
    Description of the illustration esb_out5.gif

  6. Enter a name for the adapter service and click the Service Explorer icon (second icon from the left preceding the WSDL File field).

    The Service Explorer dialog box is displayed.

    Service Explorer dialog box
    Description of the illustration bpel_5.gif

  7. Expand your new connection under Adapter Services, followed by adapters, and then applications.

    The WSDL tree displayed in the Service Explorer dialog box lists any WSDL files you have created using Application Explorer. The WSDL tree is generated by a WSDL servlet, which is automatically deployed as part of the BPEL Server installation.

    WSDL tree
    Description of the illustration esb_out6.gif

  8. Select an outbound WSDL file that has been created using Application Explorer and click OK.

    The WSDL File field in the Create Adapter Service dialog box displays the name and location of the selected WSDL file.

    WSDL file added
    Description of the illustration esb_out7.gif

  9. Click OK.

    The new ESB project appears in the visual editor.

    ESB project view
    Description of the illustration esb_out8.gif

Creating a Read Process Operation Using the File Adapter

  1. Right-click the ESB project in the middle pane, select Create Adapter Service followed by File Adapter.

    Create Read Operation
    Description of the illustration esb_out9.gif

    The Create File Adapter Service dialog box is displayed.

    Create File Adapter Service dialog box
    Description of the illustration esb_out10.gif

  2. Enter a name for the File adapter and click the Configure adapter service wsdl icon next to the WSDL File field.

    The Adapter Configuration Wizard - Welcome window is displayed.

    Adapter Configuration Wizard
    Description of the illustration esb_out11.gif

  3. Click Next.

    The Adapter Configuration Wizard - Step 1 of 6: Service Name window is displayed.

  4. Click Next.

    The Adapter Configuration Wizard - Step 2 of 6: Operation window is displayed.

    Adapter Configuration Wizard
    Description of the illustration esb_out12.gif

  5. Click Read File as the Operation Type and click Next.

    The Adapter Configuration Wizard - Step 3 of 6: File Directories window is displayed.

    Adapter Configuration Wizard
    Description of the illustration esb_out13.gif

  6. Enter the path of the input directory where you are placing the incoming XML file and click Next.

    The Adapter Configuration Wizard - Step 4 of 6: File Filtering window is displayed.

    Adapter Configuration Wizard
    Description of the illustration esb_out14.gif

  7. Enter the input file extension, for example *.xml, and click Next.

    The Adapter Configuration Wizard - Step 5 of 6: File Polling window is displayed.

    Adapter Configuration Wizard
    Description of the illustration esb_out15.gif

  8. Change the Polling Frequency to seconds and click Next.

    The Adapter Configuration Wizard - Step 6 of 6: Messages window is displayed.

    Adapter Configuration Wizard
    Description of the illustration esb_out16.gif

  9. Click Browse to select the WSDL.

    The Type Chooser window is displayed.

    Type Chooser window
    Description of the illustration esb_out17.gif

  10. Click the Import WSDL File icon on the upper right corner of the dialog box.

    The Import WSDL File dialog box is displayed.

    Import WSDL File dialog box
    Description of the illustration esb_out18.gif

  11. Select the WSDL file and click OK.

    The Imported WSDL Files folder is added.

    Imported WSDL Files folder
    Description of the illustration esb_out19.gif

  12. Expand the Imported WSDL Files folder, select an Inline Schema, for example, PS8, and click OK.

    You are returned to the Adapter Configuration Wizard - Step 6 of 6: Messages window.

    Adapter Configuration Wizard
    Description of the illustration esb_out20.gif

  13. Click Next.

    The Adapter Configuration Wizard - Finish window is displayed.

    Adapter Configuration Wizard
    Description of the illustration esb_out21.gif

  14. Click Finish.

    You are returned to the Create File Adapter Service dialog box.

    Create File Adapter Service dialog box
    Description of the illustration esb_out22.gif

  15. Click OK.

    The Read operation with a routing service is added to the ESB outbound project view.

    Read operation added
    Description of the illustration esb_out23.gif

Providing a Routing Service for the Read Operation

  1. Double-click the routing service.

    The Routing Service window is displayed.

    Routing Service
    Description of the illustration esb_out24.gif

  2. Expand the Routing Rules.

    Routing Rules
    Description of the illustration esb_out25.gif

  3. Click the green plus sign icon, which represents the option to Create a new Routing Rule.

    The Browse Target Service Operation window is displayed.

    Browse Target Service Operation window
    Description of the illustration esb_out26.gif

  4. Expand Services in project, Default System, your adapter service node, for example, PeopleSoft_ESB_Outbound, and select the service name, for example, GetDetail.

  5. Click OK.

    You are returned to the Routing Rules window.

    Routing Rules window
    Description of the illustration esb_out27.gif

  6. Click on the icon next to the <<Transformation Map>> field (Select an existing mapper file or create a new one).

    The Request Transformation Map dialog box is displayed.

    Request Transformation Map dialog box
    Description of the illustration esb_out28.gif

  7. Select the Create New Mapper File option, specify the file name, and click OK.

    The following mapping window is displayed.

    Mapping window
    Description of the illustration esb_out29.gif

  8. Select the WSDL file and map it to the Write operation.

    Once you map the WSDL file, the Auto Map Preferences dialog box is displayed.

    Auto Map Preferences dialog box
    Description of the illustration esb_out30.gif

  9. Click OK.

    The mapping is completed as shown in the following window.

    Mapping completed
    Description of the illustration esb_out31.gif

  10. Double-click the ESB outbound project file in the left pane, for example, ESB_Outbound.esb.

    Notice that the Routing service is now created for the Read operation.

    Routing service created
    Description of the illustration esb_out32.gif

Creating a Write Process Operation Using the File Adapter

  1. Right-click the ESB project in the middle pane, select Create Adapter Service followed by File Adapter.

    Create Read Operation
    Description of the illustration esb_out9.gif

    The Create File Adapter Service dialog box is displayed.

    Create File Adapter Service dialog box
    Description of the illustration esb_out33.gif

  2. Enter a name for the File adapter and click the Configure adapter service wsdl icon next to the WSDL File field.

    The Adapter Configuration Wizard - Welcome window is displayed.

    Adapter Configuration Wizard
    Description of the illustration esb_out11.gif

  3. Click Next.

    The Adapter Configuration Wizard - Step 1 of 4: Service Name window is displayed.

  4. Click Next.

    The Adapter Configuration Wizard - Step 2 of 4: Operation window is displayed.

    Adapter Configuration Wizard
    Description of the illustration esb_out34.gif

  5. Click Write File as the Operation Type and click Next.

    The Adapter Configuration Wizard - Step 3 of 4: File Configuration window is displayed.

    Adapter Configuration Wizard
    Description of the illustration esb_out35.gif

  6. Enter the path of the output directory and name of the output file and click Next.

    The Adapter Configuration Wizard - Step 4 of 4: Messages window is displayed.

    Adapter Configuration Wizard
    Description of the illustration esb_out36.gif

  7. Click Browse to select the WSDL.

    The Type Chooser window is displayed.

    Type Chooser window
    Description of the illustration esb_out37.gif

  8. Expand the Project WSDL Files folder, select an Inline Schema and click OK.

    You are returned to the Adapter Configuration Wizard - Step 4 of 4: Messages window.

    Adapter Configuration Wizard
    Description of the illustration esb_out38.gif

  9. Click Next.

    The Adapter Configuration Wizard - Finish window is displayed.

    Adapter Configuration Wizard
    Description of the illustration esb_out39.gif

  10. Click Finish.

    You are returned to the Create File Adapter Service dialog box.

    Create File Adapter Service dialog box
    Description of the illustration esb_out40.gif

  11. Click OK.

    The Write operation is added to the ESB outbound project view.

    Write operation added
    Description of the illustration esb_out41.gif

Providing a Routing Service for the Write Operation

  1. Double-click the routing service.

    The Routing Service window is displayed.

  2. Expand the Routing Rules.

    Routing Rules
    Description of the illustration esb_out42.gif

  3. Click on the icon next to the <<Target Operation>> field (Browse for target service operations).

    The Browse Target Service Operation window is displayed.

    Browse Target Service Operation window
    Description of the illustration esb_out43.gif

  4. Expand Services in project, Default System, your adapter service node, for example, PeopleSoft_ESB_Outbound, and select the service name, for example, Write.

  5. Click OK.

    You are returned to the Routing Rules window.

    Routing Rules window
    Description of the illustration esb_out42.gif

  6. Click on the icon next to the <<Transformation Map>> field (Select an existing mapper file or create a new one).

    The Reply Transformation Map dialog box is displayed.

    Reply Transformation Map dialog box
    Description of the illustration esb_out45.gif

  7. Select the Create New Mapper File option, specify the file name, and click OK.

    The following mapping window is displayed.

    Mapping window
    Description of the illustration esb_out46.gif

  8. Select the WSDL file and map it to the Write operation.

    Once you map the WSDL file, the Auto Map Preferences dialog box is displayed.

    Auto Map Preferences dialog box
    Description of the illustration esb_out30.gif

  9. Click OK.

    The mapping is completed as shown in the following window.

    Mapping completed
    Description of the illustration esb_out47.gif

  10. Double-click the ESB outbound project file in the left pane, for example, ESB_Outbound.esb.

    Notice that the Routing service is now created for the Write operation.

    Routing service created
    Description of the illustration esb_out48.gif

Deploying the Project

  1. Right-click the created project, for example, ESB_Outbound, select Register with ESB, and the server connection, for example, ServerConnection1.

    Deploying the project
    Description of the illustration esb_out49.gif

    After successful deployment, the Registration of services Successful message is displayed.

    Successful deployment message
    Description of the illustration esb_out50.gif

  2. Logon to the ESB Control console to check whether the project has been successfully deployed.

    ESB Control console
    Description of the illustration esb_in24.gif

    The deployed process is listed under the Default System node.

  3. Place the XML file in the folder that you specified during the creation of the Read operation.

    Input XML file
    Description of the illustration esb_out51.gif

  4. Check whether you are receiving the response in the output folder, which you have specified during the creation of the write operation and also the corresponding instance in the ESB Control console.

    Output location
    Description of the illustration esb_out52.gif

  5. If the response is not received in the output folder, check the instance and the logs for the corresponding errors in the ESB Control console.

Configuring an ESB Inbound Process

The following example describes how to configure an ESB inbound process to your PeopleSoft system, using an ESB project in Oracle JDeveloper.

Prerequisites

Before you proceed, you must create an inbound WSDL file for the adapter by using the following steps:

  1. Create a target using Application Explorer.

  2. Create a channel.

  3. Create a WSDL file with the noport option.

  4. Restart the Oracle Application Server.

Creating an Inbound ESB Project and Assigning an Inbound WSDL File

  1. At the top of the upper left pane, click the Applications Navigator tab.

    Applications Navigator
    Description of the illustration esb_out1.gif

  2. Right-click the application node you created and select New Project.

    The New Gallery window is displayed.

    New Gallery window
    Description of the illustration esb_out2.gif

  3. From the Items list, select ESB Project and click OK.

    The Create ESB Project dialog box is displayed.

    Create ESB Project dialog box
    Description of the illustration esb_in1.gif

  4. Perform the following steps:

    1. Specify a name for the ESB project.

      The Directory Name field and Diagram Name fields are updated automatically.

    2. Click OK.

    The ESB project is added at the top of the upper left pane.

    ESB Project
    Description of the illustration esb_in2.gif

  5. Right-click the ESB project in the middle pane, select Create ESB Service followed by Custom Adapter.

    The Create Adapter Service dialog box is displayed.

    Create Adapter Service dialog box
    Description of the illustration esb_in3.gif

  6. Enter a name for the adapter service and click the Service Explorer icon (second icon from the left preceding the WSDL File field).

    The Service Explorer dialog box is displayed.

    Service Explorer
    Description of the illustration bpel_5.gif

  7. Expand your new connection under Adapter Services, followed by adapters, and then applications.

    The WSDL tree displayed in the Service Explorer dialog box lists any WSDL files you have created using Application Explorer. The WSDL tree is generated by a WSDL servlet, which is automatically deployed as part of the BPEL Server installation.

    WSDL tree
    Description of the illustration esb_in4.gif

  8. Select an inbound WSDL file that has been created using Application Explorer and click OK.

    The WSDL File field in the Create Adapter Service dialog box displays the name and location of the selected WSDL file.

    WSDL file added
    Description of the illustration esb_in5.gif

  9. Click OK.

    The new ESB project appears in the visual editor.

Creating a Write Process Operation Using the File Adapter

  1. Right-click the ESB project in the middle pane, select Create Adapter Service followed by File Adapter.

    Create Read Operation
    Description of the illustration esb_in6.gif

    The Create File Adapter Service dialog box is displayed.

    Create File Adapter Service dialog box
    Description of the illustration esb_in7.gif

  2. Enter a name for the File adapter and click the Configure adapter service wsdl icon next to the WSDL File field.

    The Adapter Configuration Wizard - Welcome window is displayed.

    Adapter Configuration Wizard
    Description of the illustration esb_out11.gif

  3. Click Next.

    The Adapter Configuration Wizard - Step 1 of 4: Service Name window is displayed.

  4. Click Next.

    The Adapter Configuration Wizard - Step 2 of 4: Operation window is displayed.

    Adapter Configuration Wizard
    Description of the illustration esb_out34.gif

  5. Click Write File as the Operation Type and click Next.

    The Adapter Configuration Wizard - Step 3 of 4: File Configuration window is displayed.

    Adapter Configuration Wizard
    Description of the illustration esb_in8.gif

  6. Enter the path of the output directory and name of the output file and click Next.

    The Adapter Configuration Wizard - Step 4 of 4: Messages window is displayed.

    Adapter Configuration Wizard
    Description of the illustration esb_out36.gif

  7. Click Browse to select the WSDL.

    The Type Chooser window is displayed.

    Type Chooser window
    Description of the illustration esb_out17.gif

  8. Click the Import WSDL File icon on the upper right corner of the dialog box.

    The Import WSDL File dialog box is displayed.

    Adapter Configuration Wizard
    Description of the illustration esb_in9.gif

  9. Select the WSDL file and click OK.

    The Imported WSDL Files folder is added.

    Adapter Configuration Wizard
    Description of the illustration esb_in10.gif

  10. Expand the Imported WSDL Files folder, select an Inline Schema, for example, LOCATION_SYNC, and click OK.

    You are returned to the Adapter Configuration Wizard - Step 4 of 4: Messages window.

    Create File Adapter Service dialog box
    Description of the illustration esb_in11.gif

  11. Click Next.

    The Adapter Configuration Wizard - Finish window is displayed.

    Write operation added
    Description of the illustration esb_in12.gif

  12. Click Finish.

    You are returned to the Create File Adapter Service dialog box.

    Create File Adapter Service dialog box
    Description of the illustration esb_in13.gif

  13. Click OK.

    The Write operation with a routing service is added to the ESB inbound project view.

Providing a Routing Service for the Write Operation

  1. Double-click the routing service.

    Routing Service
    Description of the illustration esb_in14.gif

    The Routing Service window is displayed.

    Routing Service
    Description of the illustration esb_in15.gif

  2. Expand the Routing Rules.

    Routing Rules
    Description of the illustration esb_in16.gif

  3. Click the green plus sign icon, which represents the option to Create a new Routing Rule.

    The Browse Target Service Operation window is displayed.

    Browse Target Service Operation window
    Description of the illustration esb_in17.gif

  4. Expand Services in project, Default System, your adapter service node, for example, PeopleSoft_ESB_Inbound_RS, and select the service name, for example, Write.

  5. Click OK.

    You are returned to the Routing Rules window.

    Routing Rules window
    Description of the illustration esb_in18.gif

  6. Click on the icon next to the <<Transformation Map>> field (Select an existing mapper file or create a new one).

    The Request Transformation Map dialog box is displayed.

    Request Transformation Map dialog box
    Description of the illustration esb_in19.gif

  7. Select the Create New Mapper File option, specify the file name, and click OK.

    The following mapping window is displayed.

    Mapping window
    Description of the illustration esb_in20.gif

  8. Select the WSDL file and map it to the Write operation.

    Once you map the WSDL file, the Auto Map Preferences dialog box is displayed.

    Auto Map Preferences dialog box
    Description of the illustration esb_out30.gif

  9. Click OK.

    The mapping is completed as shown in the following window.

    Mapping completed
    Description of the illustration esb_in21.gif

  10. Double-click the ESB inbound project file in the left pane, for example, ESB_Inbound.esb.

    Notice that the Routing service is now created for the Write operation in the middle pane.

Deploying the Project

  1. Right-click the created project, for example, ESB_Outbound, select Register with ESB, and the server connection, for example, ServerConnection1.

    Deploying the project
    Description of the illustration esb_in22.gif

    After successful deployment, the Registration of services Successful message is displayed.

    Successful deployment message
    Description of the illustration esb_in23.gif

  2. Logon to the ESB Control console to check whether the project has been successfully deployed.

    ESB Control console
    Description of the illustration esb_in24.gif

    The deployed process is listed under the Default System node.

    ESB Control console
    Description of the illustration esb_in25.gif

  3. Trigger the event.

  4. Check whether you are receiving the response in the output folder, which you have specified during the creation of the write operation.

    Output folder
    Description of the illustration esb_in26.gif

  5. If the response is not received in the output folder, check the instance and the logs for the corresponding errors in the ESB Control console.