Skip Headers
Oracle® Fusion Middleware Application Adapter for SAP R/3 (SAP JCo 3.0) User's Guide for Oracle WebLogic Server
11g Release 1 (11.1.1.4.0)

Part Number E17656-04
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

9 Configuring Outbound and Inbound Processing Using Oracle Service Bus

Oracle Application Adapter for SAP R/3 integrates seamlessly with Oracle Service Bus (OSB) to facilitate Web service integration. OSB is based on the Service-Oriented Architecture (SOA). It consumes adapter services exposed as Web Service Definition Language (WSDL) documents.

This chapter contains the following topics:

Overview of Application Adapter Integration with Oracle Service Bus

To integrate with Oracle Service Bus (OSB), Oracle Application Adapter for SAP R/3 must be deployed in the same Oracle WebLogic Server as OSB. The underlying adapter services must be exposed as WSDL files, which are generated during design time in Oracle Adapter Application Explorer (Application Explorer) for both request-response (outbound) and event notification (inbound) services of the adapter.

Configuring Outbound Processing Using Oracle Service Bus (J2CA Configuration)

This section describes how to configure outbound processing using Oracle Service Bus for J2CA configurations.

This section includes the following topics:

Samples have been provided for this use case scenario under the etc/sample folder of the Application Adapters installation.

Starting Oracle Service Bus and Creating Project Folders

This section describes how to start Oracle Service Bus (OSB) and create project folders.

Note:

If you are using Oracle Application Adapter for SAP R/3 (SAP JCo 3.0) with OSB on 64-bit machines, you must add the d64 flag with the JAVA options in the startWebLogic.sh file, which is located in the following directory:
<OSB_Home>\user_projects\domains\base_domain\bin

For example:

JAVA_OPTIONS="${SAVE_JAVA_OPTIONS} -Dfile.encoding=ISO8859_1 -d64"

The Oracle WebLogic Server must be started only after this change has been made.

Perform the following steps to start Oracle Service Bus and create project folders:

  1. Start the Oracle WebLogic Server for the Oracle WebLogic Server domain that you have configured.

  2. Open the Oracle Service Bus Console in a Web browser by entering the following URL:

    http://hostname:port/sbconsole
    

    Where hostname is the name of the machine where Oracle WebLogic Server is running and port is the port for the domain you are using. The port for the default domain is 7001.

    The Oracle Service Bus Console logon page is displayed.

  3. Log on to the Oracle Service Bus Console using a valid user name and password.

    The Oracle Service Bus Console home page is displayed, as shown in Figure 9-1.

    Figure 9-1 Oracle Service Bus Console Home Page

    OSB home
    Description of "Figure 9-1 Oracle Service Bus Console Home Page"

  4. Click Create in the Change Center area to start a new Oracle Service Bus session, as shown in Figure 9-2.

  5. Click Project Explorer in the left pane, as shown in Figure 9-3.

    Figure 9-3 Project Explorer

    Project Explorer option
    Description of "Figure 9-3 Project Explorer"

    The Project Explorer page is displayed, as shown in Figure 9-4.

    Figure 9-4 Project Explorer Page

    Project Explorer
    Description of "Figure 9-4 Project Explorer Page"

  6. Provide a valid name for the new project (for example, SAP_Project) and click Add Project.

    The new project is successfully created and listed in the left pane.

  7. Click the new project node in the left pane.

    The project page is displayed, as shown in Figure 9-5.

  8. In the Enter New Folder Name field, type Business Service and click Add Folder.

  9. In the Enter New Folder Name field, type Proxy Service and click Add Folder.

  10. In the Enter New Folder Name field, type wsdls and click Add Folder.

    The Business Service, Proxy Service, and wsdls folders are listed in the left pane below the new SAP_Project node, as shown in Figure 9-6.

    Figure 9-6 SAP_Project Node

    project folders
    Description of "Figure 9-6 SAP_Project Node"

Setting the Class Path for Application Explorer to Integrate With Oracle Service Bus

Before starting and using Application Explorer to publish a WSDL directly to the Oracle Service Bus (OSB) Console (project/folder), OSB users must perform the following steps:

  1. Open the command prompt window.

  2. Navigate to the following directory:

    <OSB_Home>\user_projects\domains\base_domain\bin
    
  3. Execute setDomainEnv.cmd (Windows) or . ./setDomainEnv.sh (UNIX/Linux).

    This command sets the class path for Application Explorer to access the Oracle WebLogic Server APIs to publish the WSDLs to the OSB Console.

  4. Do not close the command prompt window.

  5. Navigate to the following directory:

    <OSB_Home>\3rdparty\ApplicationAdapters\tools\iwae\bin
    
  6. Execute ae.bat (Windows) or iwae.sh (UNIX/Linux) to start Application Explorer.

    You are now ready to publish WSDLs from Application Explorer to the OSB Console.

Publishing a WSDL From Application Explorer to Oracle Service Bus

Perform the following steps to publish a WSDL from Application Explorer to Oracle Service Bus:

  1. Start Application Explorer, connect to a J2CA configuration, and connect to a SAP R/3 target.

    For more information, see Chapter 4, "Configuring Oracle Application Adapter for SAP R/3".

  2. Expand Business Object Repository, Financial Accounting, and then CompanyCode.

  3. Right-click the GetDetail method and select Create Outbound JCA Service(Request/Response) from the menu, as shown in Figure 9-7.

    Figure 9-7 Create Outbound JCA Service (Request/Response) Option

    browse metadata
    Description of "Figure 9-7 Create Outbound JCA Service (Request/Response) Option"

    The Export WSDL dialog is displayed, as shown in Figure 9-8.

    Figure 9-8 Export WSDL Dialog

    Export WSDL dialog
    Description of "Figure 9-8 Export WSDL Dialog"

  4. In the Name field, a default file name for the WSDL file is provided. You can accept the default or provide your own.

  5. Select the Export to OSB option.

  6. In the Location field, enter the folder name in Oracle Service Bus where you want to publish the WSDL document.

    The location is composed of an Oracle Service Bus project name and optionally, one or more folder names. The project name and any folder names must be separated by a forward slash character “/”.

  7. In the Host field, enter the name of the machine where Oracle Service Bus is installed.

  8. In the Port field, enter the port that is being used by Oracle Service Bus.

  9. In the User field, enter your username to access Oracle Service Bus.

  10. In the Password field, enter your password to access Oracle Service Bus.

  11. Click OK.

    The WSDL is published to the location specified in the Export WSDL dialog and is now available for use with a Business Service or Proxy Service in Oracle Service Bus.

Configuring a WSDL-based Business Service

Perform the following steps to configure a WSDL-based Business Service:

  1. Open the Oracle Service Bus Console and select the created WSDL folder in the left pane (for example, wsdls), as shown in Figure 9-9.

    Figure 9-9 Created WSDL Folder

    WSDL folder
    Description of "Figure 9-9 Created WSDL Folder"

  2. Ensure that the exported WSDL is listed, as shown in Figure 9-10.

    Figure 9-10 Exported WSDL

    exported WSDL
    Description of "Figure 9-10 Exported WSDL"

  3. Click the icon that corresponds to the exported WSDL in the Actions column.

    The Generate WSDL and Service page is displayed, as shown in Figure 9-11.

    Figure 9-11 Generate WSDL and Service Page

    Generate WSDL and Service page
    Description of "Figure 9-11 Generate WSDL and Service Page"

  4. Provide a new WSDL name and a new service name in the corresponding fields, as shown in Figure 9-12.

    Figure 9-12 WSDL Name and Service Name

    Generate WSDL and Service page
    Description of "Figure 9-12 WSDL Name and Service Name"

  5. In the Location area, select an available project and the sub-folder that is designated for Business Services.

  6. Click Generate.

    If the WSDL and Service resources are successfully created, then the following message is displayed, as shown in Figure 9-13.

    Figure 9-13 Successful Creation Message

    success message
    Description of "Figure 9-13 Successful Creation Message"

Configuring a File Type Business Service

Perform the following steps to configure a File type Business Service:

  1. Select the Business Service folder you created in the left pane, as shown in Figure 9-14.

    Figure 9-14 Business Service Folder

    Select Business Service
    Description of "Figure 9-14 Business Service Folder"

  2. In the right pane, select Business Service from the Create Resource menu, as shown in Figure 9-15.

    Figure 9-15 Business Service

    Select Business Service
    Description of "Figure 9-15 Business Service"

    The General Configuration page is displayed, as shown in Figure 9-16.

    Figure 9-16 General Configuration Page

    General Configuration page
    Description of "Figure 9-16 General Configuration Page"

  3. Provide a name for the new Business Service and select Messaging Service from the Service Type area.

  4. Click Next.

    The Message Type Configuration page is displayed, as shown in Figure 9-17.

    Figure 9-17 Message Type Configuration Page

    Message Type Configuration page
    Description of "Figure 9-17 Message Type Configuration Page"

  5. Select XML as the Request Message Type and None as the Response Message Type.

  6. Click Next.

    The Transport Configuration page is displayed, as shown in Figure 9-18.

    Figure 9-18 Transport Configuration Page

    Transport Configuration page
    Description of "Figure 9-18 Transport Configuration Page"

  7. Select file from the Protocol list.

  8. Enter the path to a destination folder on your file system in the Endpoint URI field and click Add.

  9. Click Next, as shown in Figure 9-19.

    Figure 9-19 Transport Configuration Page

    Transport Configuration page
    Description of "Figure 9-19 Transport Configuration Page"

    The FILE Transport Configuration page is displayed, as shown in Figure 9-20.

    Figure 9-20 FILE Transport Configuration Page

    FILE Transport Configuration page
    Description of "Figure 9-20 FILE Transport Configuration Page"

  10. Enter the prefix and suffix for the output file to be received and click Next.

    The Message Handling and Advanced Settings page is displayed, as shown in Figure 9-21.

    Figure 9-21 Message Handling and Advanced Settings Page

    Message Handling page
    Description of "Figure 9-21 Message Handling and Advanced Settings Page"

  11. Click Next.

    The following Summary page is displayed, as shown in Figure 9-22.

  12. Review all the information for your Business Service and click Save.

  13. Check if the success message is displayed once it is saved, as shown in Figure 9-23.

    Figure 9-23 Success Message

    Activate button
    Description of "Figure 9-23 Success Message"

Configuring a Proxy Service

Perform the following steps to configure a Proxy Service:

  1. Select the Proxy Service folder you created in the left pane, as shown in Figure 9-24.

    Figure 9-24 Proxy Service Folder

    Select Proxy Service
    Description of "Figure 9-24 Proxy Service Folder"

  2. In the right pane, select Proxy Service from the Create Resource menu.

    The General Configuration page is displayed, as shown in Figure 9-25.

    Figure 9-25 General Configuration Page

    General Configuration
    Description of "Figure 9-25 General Configuration Page"

  3. Provide a name for the Proxy Service and from the Service Type area select Any XML Service.

  4. Click Next, as shown in Figure 9-26.

    Figure 9-26 Transport Configuration Page

    Transport Configuration page
    Description of "Figure 9-26 Transport Configuration Page"

  5. Select file from the Protocol list.

  6. Enter the path to an input folder on your file system in the Endpoint URI field.

  7. Click Next, as shown in Figure 9-27.

    Figure 9-27 FILE Transport Configuration Page

    File Transport Configuration page
    Description of "Figure 9-27 FILE Transport Configuration Page"

  8. Provide any folder locations on your file system for the Stage Directory and Error Directory fields.

  9. Click Next, as shown in Figure 9-28.

    Figure 9-28 Message Handling Page

    Message Handling page
    Description of "Figure 9-28 Message Handling Page"

  10. Accept the default values and click Next.

    The following Summary page is displayed, as shown in Figure 9-29.

  11. Review all the information for your Proxy Service and click Save.

  12. Check if the success message is displayed, as shown in Figure 9-30.

    Figure 9-30 Success Message

    success message
    Description of "Figure 9-30 Success Message"

Configuring a Pipeline

Perform the following steps to configure a Pipeline:

  1. Click the Edit Message Flow icon in the row of the Proxy Service you created, as shown in Figure 9-31.

    Figure 9-31 Edit Message Flow Icon

    Edit Message Flow Icon
    Description of "Figure 9-31 Edit Message Flow Icon"

    The Edit Message Flow workspace area is displayed, as shown in Figure 9-32.

    Figure 9-32 Edit Message Flow Workspace

    Edit Message Flow workspace
    Description of "Figure 9-32 Edit Message Flow Workspace"

  2. Click the Proxy Service icon and select Add Pipeline Pair from the menu, as shown in Figure 9-33.

    Figure 9-33 Add Pipeline Pair Option

    Add Pipeline Pair
    Description of "Figure 9-33 Add Pipeline Pair Option"

  3. Click the PipelinePairNode1 icon and select Add Route from the menu, as shown in Figure 9-34.

    Figure 9-34 Add Route Option

    Add Stage
    Description of "Figure 9-34 Add Route Option"

    The RouteNode1 icon is added below the Request Pipeline icon, as shown in Figure 9-35.

    Figure 9-35 RouteNode1 Icon

    Edit Stage
    Description of "Figure 9-35 RouteNode1 Icon"

  4. Click the RouteNode1 icon and select Edit Route from the menu.

    The Edit Stage Configuration workspace area is displayed, as shown in Figure 9-36.

    Figure 9-36 Edit Stage Configuration Workspace Area

    Add Log
    Description of "Figure 9-36 Edit Stage Configuration Workspace Area"

  5. Click Add an Action, select Communication from the menu, and click Routing.

    Figure 9-37 Edit Stage Configuration Workspace Area

    Edit Expression
    Description of "Figure 9-37 Edit Stage Configuration Workspace Area"

  6. Click <Service>, as shown in Figure 9-37.

    The Select Service dialog is displayed, as shown in Figure 9-38.

    Figure 9-38 Select Service Dialog

    Select Service dialog
    Description of "Figure 9-38 Select Service Dialog"

  7. Select the WSDL type Business Service configured for SAP R/3 and click Submit.

    You are returned to the Edit Stage Configuration workspace area, as shown in Figure 9-39.

    Figure 9-39 Edit Stage Configuration Workspace Area

    Edit Stage Configuration
    Description of "Figure 9-39 Edit Stage Configuration Workspace Area"

  8. Select the name of the SAP R/3 business object (for example, GetDetail) as the operational attribute from the list, as shown in Figure 9-40.

    Figure 9-40 Business Object

    Edit Stage Configuration
    Description of "Figure 9-40 Business Object"

  9. Click Save.

    Figure 9-41 Add Stage Option

    Add Stage
    Description of "Figure 9-41 Add Stage Option"

  10. Click the Response Pipeline icon and select Add Stage from the menu, as shown in Figure 9-41.

    The Stage1 icon is added below the Response Pipeline icon.

    Figure 9-42 Edit Stage Option

    Edit Stage
    Description of "Figure 9-42 Edit Stage Option"

  11. Click the Stage1 icon and select Edit Stage from the menu, as shown in Figure 9-42.

    The Edit Stage Configuration workspace area is displayed, as shown in Figure 9-43.

    Figure 9-43 Edit Stage Configuration Workspace Area

    Select Publish
    Description of "Figure 9-43 Edit Stage Configuration Workspace Area"

  12. Click Add an Action, select Communication from the menu, and click Publish.

    Figure 9-44 Edit Stage Configuration Workspace Area

    Add Service
    Description of "Figure 9-44 Edit Stage Configuration Workspace Area"

  13. Click <Service>, as shown in Figure 9-44.

    The Select Service dialog is displayed, as shown in Figure 9-45.

    Figure 9-45 Select Service Dialog

    Select Service dialog
    Description of "Figure 9-45 Select Service Dialog"

  14. Select a File type Business Service and click Submit.

    You are returned to the Edit Stage Configuration workspace area.

  15. Click Save, as shown in Figure 9-46.

    You are returned to the Edit Message Flow workspace area, as shown in Figure 9-47.

    Figure 9-47 Edit Message Flow Workspace Area

    Edit Message Flow
    Description of "Figure 9-47 Edit Message Flow Workspace Area"

  16. Click Save.

    Figure 9-48 Successful Update Message

    success message
    Description of "Figure 9-48 Successful Update Message"

  17. Check if the success message is displayed and click Activate in the Change Center, as shown in Figure 9-48.

    The Activate Session page is displayed, as shown in Figure 9-49.

    Figure 9-49 Activate Session Page

    Activate Session page
    Description of "Figure 9-49 Activate Session Page"

  18. Click Submit.

  19. Check if the View Configuration Changes page is displayed, as shown in Figure 9-50.

    Figure 9-50 View Configuration Changes Page

    View Configuration Changes page
    Description of "Figure 9-50 View Configuration Changes Page"

  20. Copy and paste an input XML file in the input folder you have configured, as shown in Figure 9-51.

    Figure 9-51 Input XML File

    Input XML document
    Description of "Figure 9-51 Input XML File"

  21. Output is received in the configured output location.

Configuring Inbound Processing Using Oracle Service Bus (J2CA Configuration)

This section describes how to configure inbound processing using Oracle Service Bus for J2CA configurations.

This section includes the following topics:

Samples have been provided for this use case scenario under the etc/sample folder of the Application Adapters installation.

Starting Oracle Service Bus and Creating Project Folders

This section describes how to start Oracle Service Bus (OSB) and create project folders.

Note:

If you are using Oracle Application Adapter for SAP R/3 (SAP JCo 3.0) with OSB on 64-bit machines, you must add the d64 flag with the JAVA options in the startWebLogic.sh file, which is located in the following directory:
<OSB_Home>\user_projects\domains\base_domain\bin

For example:

JAVA_OPTIONS="${SAVE_JAVA_OPTIONS} -Dfile.encoding=ISO8859_1 -d64"

The Oracle WebLogic Server must be started only after this change has been made.

Perform the following steps to start Oracle Service Bus and create project folders:

  1. Start the Oracle WebLogic Server for the Oracle WebLogic Server domain that you have configured.

  2. Open the Oracle Service Bus Console in a Web browser by entering the following URL:

    http://hostname:port/sbconsole
    

    Where hostname is the name of the machine where Oracle WebLogic Server is running and port is the port for the domain you are using. The port for the default domain is 7001.

    The Oracle Service Bus Console logon page is displayed.

  3. Log on to the Oracle Service Bus Console using a valid user name and password.

    The Oracle Service Bus Console home page is displayed, as shown in Figure 9-52.

    Figure 9-52 Oracle Service Bus Console

    OSB home
    Description of "Figure 9-52 Oracle Service Bus Console"

  4. Click Create in the Change Center area to start a new Oracle Service Bus session, as shown in Figure 9-53.

    Figure 9-53 Change Center

    Change Center
    Description of "Figure 9-53 Change Center"

  5. Click Project Explorer in the left pane, as shown in Figure 9-54.

    Figure 9-54 Project Explorer Option

    Project Explorer option
    Description of "Figure 9-54 Project Explorer Option"

    The Project Explorer page is displayed, as shown in Figure 9-55.

    Figure 9-55 Project Explorer Page

    Project Explorer
    Description of "Figure 9-55 Project Explorer Page"

  6. Provide a valid name for the new project and click Add Project.

    The project is successfully created and listed.

  7. Click on the created project.

    The project page is displayed, as shown in Figure 9-56.

  8. In the Enter New Folder Name field, type Business Service and click Add Folder.

  9. In the Enter New Folder Name field, type Proxy Service and click Add Folder.

  10. In the Enter New Folder Name field, type wsdls and click Add Folder.

    The Business Service, Proxy Service, and wsdls folders are listed in the left pane below the project node., as shown in Figure 9-57

    Figure 9-57 SAP_Project Node

    project folders
    Description of "Figure 9-57 SAP_Project Node"

Setting the Class Path for Application Explorer to Integrate With Oracle Service Bus

Before starting and using Application Explorer to publish a WSDL directly to the Oracle Service Bus (OSB) Console (project/folder), OSB users must perform the following steps:

  1. Open the command prompt window.

  2. Navigate to the following directory:

    <OSB_Home>\user_projects\domains\base_domain\bin
    
  3. Execute setDomainEnv.cmd (Windows) or . ./setDomainEnv.sh (UNIX/Linux).

    This command sets the class path for Application Explorer to access the Oracle WebLogic Server APIs to publish the WSDLs to the OSB Console.

  4. Do not close the command prompt window.

  5. Navigate to the following directory:

    <OSB_Home>\3rdparty\ApplicationAdapters\tools\iwae\bin
    
  6. Execute ae.bat (Windows) or iwae.sh (UNIX/Linux) to start Application Explorer.

    You are now ready to publish WSDLs from Application Explorer to the OSB Console.

Publishing a WSDL From Application Explorer to Oracle Service Bus

Perform the following steps to publish a WSDL from Application Explorer to Oracle Service Bus:

  1. Start Application Explorer, connect to a J2CA configuration, and connect to a SAP R/3 target.

    For more information, see Chapter 4, "Configuring Oracle Application Adapter for SAP R/3".

  2. Expand the Events node.

  3. Right-click the Channels node for MySAP and select Add Channel from the menu, as shown in Figure 9-58.

    Figure 9-58 Add Channel Option

    Add Channel option
    Description of "Figure 9-58 Add Channel Option"

    The Add Channel dialog is displayed, as shown in Figure 9-59.

    Figure 9-59 Add Channel Dialog

    Add Channel dialog
    Description of "Figure 9-59 Add Channel Dialog"

    The Application Server dialog is displayed, as shown in Figure 9-60.

    Figure 9-60 Application Server Dialog

    Application Server dialog
    Description of "Figure 9-60 Application Server Dialog"

  4. Provide the required connection information for your SAP R/3 system and click OK.

    The new channel is added below the Channels node.

  5. Expand the Adapters node and then the MySAP node.

  6. Expand the ALE (IDOCs) node and then the MATMAS -- Material node.

    Figure 9-61 Create Inbound JCA Service(Event) Option

    Application Explorer
    Description of "Figure 9-61 Create Inbound JCA Service(Event) Option"

  7. Right-click MATMAS01 and select Create Inbound JCA Service(Event) from the menu, as shown in Figure 9-61.

    The Export WSDL dialog is displayed, as shown in Figure 9-62.

    Figure 9-62 Export WSDL Dialog

    Export WSDL dialog
    Description of "Figure 9-62 Export WSDL Dialog"

  8. In the Name field, a default file name for the WSDL file is provided. You can accept the default or provide your own.

  9. From the Channel list, select the channel you created for this inbound service.

  10. Three check boxes for Root, Namespace, and Schema validation are also available. Selection of multiple validation options is allowed.

  11. Select the Export to OSB option.

  12. In the Location field, enter the folder name in Oracle Service Bus where you want to publish the WSDL document.

    The location is composed of an Oracle Service Bus project name and optionally, one or more folder names. The project name and any folder names must be separated by a forward slash character “/”.

  13. In the Host field, enter the name of the machine where Oracle Service Bus is installed.

  14. In the Port field, enter the port that is being used by Oracle Service Bus.

  15. In the User field, enter your username to access Oracle Service Bus.

  16. In the Password field, enter your password to access Oracle Service Bus.

  17. Click OK.

    The inbound WSDL is published to the location specified in the Export WSDL dialog and is now available for use with a Proxy Service in Oracle Service Bus.

Configuring a WSDL-based Proxy Service

Perform the following steps to configure a WSDL-based Proxy Service:

  1. Open the Oracle Service Bus Console and select the created WSDL folder in the left pane (for example, wsdls), as shown in Figure 9-63.

    Figure 9-63 Created WSDL Folder

    WSDL folder
    Description of "Figure 9-63 Created WSDL Folder"

  2. Ensure that the exported WSDL is listed, as shown in Figure 9-64.

    Figure 9-64 Exported WSDL

    exported WSDL
    Description of "Figure 9-64 Exported WSDL"

  3. Click the icon that corresponds to the exported WSDL in the Actions column.

    The Generate WSDL and Service page is displayed, as shown in Figure 9-65.

    Figure 9-65 Generate WSDL and Service Page

    Generate WSDL and Service page
    Description of "Figure 9-65 Generate WSDL and Service Page"

  4. Provide a new WSDL name and a new service name in the corresponding fields.

  5. In the Location area, select an available project and the sub-folder that is designated for Proxy Services.

  6. Click Generate.

    If the WSDL and Service resources are successfully created, then the following message is displayed, as shown in Figure 9-66.

    Figure 9-66 Success Message

    success message
    Description of "Figure 9-66 Success Message"

  7. Click Proxy Service under Project Explorer and check if the generated WSDL and Proxy Service are listed, as shown in Figure 9-67.

    Figure 9-67 Generated WSDL

    generated WSDL
    Description of "Figure 9-67 Generated WSDL"

Configuring a File Type Business Service

Perform the following steps to configure a File type Business Service:

  1. Select the Business Service folder you created in the left pane, as shown in Figure 9-68.

    Figure 9-68 Business Service Folder

    Select Business Service
    Description of "Figure 9-68 Business Service Folder"

  2. In the right pane, select Business Service from the Create Resource menu, as shown in Figure 9-69.

    Figure 9-69 Business Service

    select Business Service
    Description of "Figure 9-69 Business Service"

    The General Configuration page is displayed, as shown in Figure 9-70.

    Figure 9-70 General Configuration Page

    General Configuration page
    Description of "Figure 9-70 General Configuration Page"

  3. Provide a name for the Business Service and from the Service Type area select Messaging Service.

  4. Click Next.

    The Message Type Configuration page is displayed, as shown in Figure 9-71.

    Figure 9-71 Message Type Configuration Page

    Message Type Configuration page
    Description of "Figure 9-71 Message Type Configuration Page"

  5. Select XML as the Request Message Type and None as the Response Message Type.

  6. Click Next.

    The Transport Configuration page is displayed, as shown in Figure 9-72.

    Figure 9-72 Transport Configuration Page

    Transport Configuration page
    Description of "Figure 9-72 Transport Configuration Page"

  7. Select file from the Protocol list.

  8. Enter the path to a destination folder on your file system in the Endpoint URI field and click Add.

  9. Click Next.

    The FILE Transport Configuration page is displayed, as shown in Figure 9-73.

    Figure 9-73 FILE Transport Configuration Page

    FILE Transport Configuration page
    Description of "Figure 9-73 FILE Transport Configuration Page"

  10. Enter the prefix and suffix for the output file to be received and click Next.

    The Message Handling and Advanced Settings page is displayed, as shown in Figure 9-74.

    Figure 9-74 Message Handling and Advanced Settings Page

    Message Handling page
    Description of "Figure 9-74 Message Handling and Advanced Settings Page"

  11. Click Next.

    The following Summary page is displayed, as shown in Figure 9-75.

  12. Review all the information for your Business Service and click Save.

  13. Check if the success message is displayed and click Activate in the Change Center, as shown in Figure 9-76.

    Figure 9-76 Change Center

    Activate button
    Description of "Figure 9-76 Change Center"

    The Activate Session page is displayed, as shown in Figure 9-77.

    Figure 9-77 Activate Session Page

    Activate Session page
    Description of "Figure 9-77 Activate Session Page"

  14. Click Submit.

  15. Check if the View Configuration Changes page is displayed, as shown in Figure 9-78.

    Figure 9-78 View Configuration Changes Page

    View Configuration Changes page
    Description of "Figure 9-78 View Configuration Changes Page"

Configuring a Pipeline

Perform the following steps to configure a Pipeline:

  1. Click the Edit Message Flow icon in the row of the Proxy Service you created, as shown in Figure 9-79.

    Figure 9-79 Edit Message Flow Icon

    Edit Message Flow Icon
    Description of "Figure 9-79 Edit Message Flow Icon"

    The Edit Message Flow workspace area is displayed, as shown in Figure 9-80.

    Figure 9-80 Edit Message Flow Workspace Area

    Edit Message Flow workspace
    Description of "Figure 9-80 Edit Message Flow Workspace Area"

  2. Click the displayed Proxy service icon and select Add Route from the menu.

    The RouteNode1 icon is added below the Request Pipeline icon.

    Figure 9-81 Edit Route Option

    Edit Stage
    Description of "Figure 9-81 Edit Route Option"

  3. Click the RouteNode1 icon and select Edit Route from the menu, as shown in Figure 9-81.

    The Edit Stage Configuration workspace area is displayed, as shown in Figure 9-82.

    Figure 9-82 Edit Stage Configuration Workspace Area

    select Routing
    Description of "Figure 9-82 Edit Stage Configuration Workspace Area"

  4. Click Add an Action, select Communication from the menu, and click Routing, as shown in Figure 9-83.

    Figure 9-83 Edit Stage Configuration Page

    Edit Expression
    Description of "Figure 9-83 Edit Stage Configuration Page"

  5. Click <Service>.

    The Select Service dialog is displayed, as shown in Figure 9-84.

    Figure 9-84 Select Service Dialog

    Select Service dialog
    Description of "Figure 9-84 Select Service Dialog"

  6. Select a File type Business Service and click Submit.

    You are returned to the Edit Stage Configuration workspace area, as shown in Figure 9-85.

    Figure 9-85 Edit Stage Configuration Workspace Area

    Edit Stage Configuration
    Description of "Figure 9-85 Edit Stage Configuration Workspace Area"

  7. Click Save.

    You are returned to the Edit Message Flow workspace area, as shown in Figure 9-86.

    Figure 9-86 Edit Message Flow Workspace Area

    Edit Message Flow
    Description of "Figure 9-86 Edit Message Flow Workspace Area"

  8. Click Save.

    Figure 9-87 Successful Update Message

    Activate button
    Description of "Figure 9-87 Successful Update Message"

  9. Check if the success message is displayed and click Activate in the Change Center, as shown in Figure 9-87.

    The Activate Session page is displayed, as shown in Figure 9-88.

    Figure 9-88 Activate Session Page

    Activate Session page
    Description of "Figure 9-88 Activate Session Page"

  10. Click Submit.

  11. Check if the View Configuration Changes page is displayed, as shown in Figure 9-89.

    Figure 9-89 View Configuration Changes Page

    View Configuration Changes page
    Description of "Figure 9-89 View Configuration Changes Page"

  12. Trigger an event from the SAP R/3 system and check if the output is received in the configured output location.

Configuring Outbound Processing Using Oracle Service Bus (BSE Configuration)

This section describes how to configure outbound processing using Oracle Service Bus for BSE configurations.

This section includes the following topics:

Samples have been provided for this use case scenario under the etc/sample folder of the Application Adapters installation.

Starting Oracle Service Bus and Creating Project Folders

This section describes how to start Oracle Service Bus (OSB) and create project folders.

Note:

If you are using Oracle Application Adapter for SAP R/3 (SAP JCo 3.0) with OSB on 64-bit machines, you must add the d64 flag with the JAVA options in the startWebLogic.sh file, which is located in the following directory:
<OSB_Home>\user_projects\domains\base_domain\bin

For example:

JAVA_OPTIONS="${SAVE_JAVA_OPTIONS} -Dfile.encoding=ISO8859_1 -d64"

The Oracle WebLogic Server must be started only after this change has been made.

Perform the following steps to start Oracle Service Bus and create project folders:

  1. Start the Oracle WebLogic Server for the Oracle WebLogic Server domain that you have configured.

  2. Open the Oracle Service Bus Console in a Web browser by entering the following URL:

    http://hostname:port/sbconsole
    

    Where hostname is the name of the machine where Oracle WebLogic Server is running and port is the port for the domain you are using. The port for the default domain is 7001.

    The Oracle Service Bus Console logon page is displayed.

  3. Log on to the Oracle Service Bus Console using a valid user name and password.

    The Oracle Service Bus Console home page is displayed, as shown in Figure 9-90.

    Figure 9-90 Oracle Service Bus Console

    OSB home
    Description of "Figure 9-90 Oracle Service Bus Console"

  4. Click Create in the Change Center area to start a new Oracle Service Bus session, as shown in Figure 9-91.

    Figure 9-91 Change Center

    Change Center
    Description of "Figure 9-91 Change Center"

  5. Click Project Explorer in the left pane, as shown in Figure 9-92.

    Figure 9-92 Project Explorer Option

    Project Explorer option
    Description of "Figure 9-92 Project Explorer Option"

    The Project Explorer page is displayed, as shown in Figure 9-93.

    Figure 9-93 Project Explorer Page

    Project Explorer
    Description of "Figure 9-93 Project Explorer Page"

  6. Provide a valid name for the new project (for example, SAP_Project) and click Add Project.

    The new project is successfully created and listed in the left pane.

  7. Click the new project node in the left pane.

    The project page is displayed, as shown in Figure 9-94.

  8. In the Enter New Folder Name field, type Business Service and click Add Folder.

  9. In the Enter New Folder Name field, type Proxy Service and click Add Folder.

  10. In the Enter New Folder Name field, type wsdls and click Add Folder.

    The Business Service, Proxy Service, and wsdls folders are listed in the left pane below the new SAP_Project node, as shown in Figure 9-95.

    Figure 9-95 SAP_Project Node

    project folders
    Description of "Figure 9-95 SAP_Project Node"

Setting the Class Path for Application Explorer to Integrate With Oracle Service Bus

Before starting and using Application Explorer to publish a WSDL directly to the Oracle Service Bus (OSB) Console (project/folder), OSB users must perform the following steps:

  1. Open the command prompt window.

  2. Navigate to the following directory:

    <OSB_Home>\user_projects\domains\base_domain\bin
    
  3. Execute setDomainEnv.cmd (Windows) or . ./setDomainEnv.sh (UNIX/Linux).

    This command sets the class path for Application Explorer to access the Oracle WebLogic Server APIs to publish the WSDLs to the OSB Console.

  4. Do not close the command prompt window.

  5. Navigate to the following directory:

    <OSB_Home>\3rdparty\ApplicationAdapters\tools\iwae\bin
    
  6. Execute ae.bat (Windows) or iwae.sh (UNIX/Linux) to start Application Explorer.

    You are now ready to publish WSDLs from Application Explorer to the OSB Console.

Publishing a WSDL From Application Explorer to Oracle Service Bus

This section describes how to publish a WSDL from Application Explorer (BSE configuration) to Oracle Service Bus.

  1. Start Application Explorer, connect to a BSE configuration, and connect to a SAP R/3 target.

    Figure 9-96 Create Web Service Option

    browse metadata
    Description of "Figure 9-96 Create Web Service Option"

  2. Expand the Business Object Repository node, Financial Accounting node, and the CompanyCode business object.

  3. Right-click the GetDetail method and select Create Web Service from the menu, as shown in Figure 9-96.

    The Create Web Service dialog is displayed, as shown in Figure 9-97.

    Figure 9-97 Create Web Service Dialog

    Create Web Service dialog
    Description of "Figure 9-97 Create Web Service Dialog"

  4. Enter a service name and click Next.

  5. Click OK on the next dialog that is displayed.

    Application Explorer switches the view to the Business Services node, and the new Web service appears in the left pane.

    Figure 9-98 Export WSDL Option

    New Web Service
    Description of "Figure 9-98 Export WSDL Option"

  6. Right-click the new Web service and select Export WSDL from the menu, as shown in Figure 9-98.

    The Export WSDL dialog is displayed, as shown in Figure 9-99.

    Figure 9-99 Export WSDL Dialog

    Export WSDL dialog
    Description of "Figure 9-99 Export WSDL Dialog"

  7. In the Name field, a default file name for the WSDL file is provided. You can accept the default or provide your own.

  8. In the Location field, enter the location where you want to publish the WSDL document.

    The location is composed of an Oracle Service Bus project name and optionally, one or more folder names. The project name and any folder names must be separated by a forward slash character “/”.

  9. In the Host field, enter the name of the machine where Oracle WebLogic Server is running.

  10. In the Port field, enter the port for the domain you are using.

  11. In the User field, enter your username to access Oracle Service Bus.

  12. In the Password field, enter your password to access Oracle Service Bus.

  13. Click OK.

    The WSDL is published to the location specified in the Export WSDL dialog and is now available for use with a Business Service or Proxy Service in Oracle Service Bus.

Configuring a File Type Business Service

This section describes how to configure a File type Business Service using the Oracle Service Bus Console.

  1. Select the Business Service folder you created in the left pane.

    Figure 9-100 Business Service Option

    Select Business Service
    Description of "Figure 9-100 Business Service Option"

  2. In the right pane, select Business Service from the Create Resource menu, as shown in Figure 9-100.

    The General Configuration page is displayed, as shown in Figure 9-101.

    Figure 9-101 General Configuration Page

    General Configuration
    Description of "Figure 9-101 General Configuration Page"

  3. Provide a name for the Business Service and from the Service Type area select Messaging Service.

  4. Click Next.

    The Message Type Configuration page is displayed, as shown in Figure 9-102.

    Figure 9-102 Message Type Configuration Page

    Message Type Configuration
    Description of "Figure 9-102 Message Type Configuration Page"

  5. Select XML as the Request Message Type and None as the Response Message Type.

  6. Click Next.

    The Transport Configuration page is displayed, as shown in Figure 9-103.

    Figure 9-103 Transport Configuration Page

    Transport Configuration
    Description of "Figure 9-103 Transport Configuration Page"

  7. Select file from the Protocol list.

  8. Enter the path to a destination folder on your file system in the Endpoint URI field and click Add.

  9. Click Next.

    The FILE Transport Configuration page is displayed, as shown in Figure 9-104.

    Figure 9-104 FILE Transport Configuration Page

    FILE Transport Configuration
    Description of "Figure 9-104 FILE Transport Configuration Page"

  10. Enter the prefix and suffix for the output file to be received and click Next.

    The Summary page is displayed, as shown in Figure 9-105.

    Figure 9-105 Summary Page

    Summary
    Description of "Figure 9-105 Summary Page"

  11. Review all the information for your Business Service and click Save.

Configuring a WSDL Type Business Service

This section describes how to configure a WSDL type Business Service using the Oracle Service Bus Console.

  1. Select the Business Service folder you created in the left pane.

    Figure 9-106 Business Service Option

    Select Business Service
    Description of "Figure 9-106 Business Service Option"

  2. In the right pane, select Business Service from the Create Resource menu, as shown in Figure 9-106.

    The General Configuration page is displayed, as shown in Figure 9-107.

    Figure 9-107 General Configuration Page

    General Configuration
    Description of "Figure 9-107 General Configuration Page"

  3. Provide a name for the Business Service and from the Service Type area select WSDL Web Service.

  4. Click Browse.

    The Select a WSDL dialog is displayed, as shown in Figure 9-108.

    Figure 9-108 Select a WSDL Dialog

    Select a WSDL dialog
    Description of "Figure 9-108 Select a WSDL Dialog"

  5. Select a BSE WSDL that you published for Oracle Application Adapter for SAP R/3 using Application Explorer and click Submit.

    The Select a WSDL Definition dialog is displayed, as shown in Figure 9-109.

    Figure 9-109 Select a WSDL Definition Dialog

    Select WSDL dialog
    Description of "Figure 9-109 Select a WSDL Definition Dialog"

  6. Select the WSDL definition under the Ports section and click Submit.

    You are returned to the General Configuration page where the WSDL you selected is now available.

  7. Click Next.

    The Transport Configuration page is displayed, as shown in Figure 9-110.

    Figure 9-110 Transport Configuration Page

    Transport Configuration
    Description of "Figure 9-110 Transport Configuration Page"

  8. Leave the default values and click Next.

    The HTTP Transport Configuration page is displayed, as shown in Figure 9-111.

    Figure 9-111 HTTP Transport Configuration Page

    HTTP Transport Configuration
    Description of "Figure 9-111 HTTP Transport Configuration Page"

  9. Leave the default values and click Next.

    The SOAP Binding Configuration page is displayed, as shown in Figure 9-112.

    Figure 9-112 SOAP Binding Configuration Page

    SOAP Binding Configuration
    Description of "Figure 9-112 SOAP Binding Configuration Page"

  10. Click Next.

    The Message Content Handling page is displayed, as shown in Figure 9-113.

    Figure 9-113 Message Content Handling Page

    Message Content Heading
    Description of "Figure 9-113 Message Content Handling Page"

  11. Click Next.

    The Summary page is displayed, as shown in Figure 9-114.

    Figure 9-114 Summary Page

    Summary
    Description of "Figure 9-114 Summary Page"

  12. Review all the information for your Business Service and click Save.

Configuring a Proxy Service

This section describes how to configure a Proxy Service using the Oracle Service Bus Console.

  1. Select the Proxy Service folder you created in the left pane.

    Figure 9-115 Proxy Service Option

    Select Proxy Service
    Description of "Figure 9-115 Proxy Service Option"

  2. In the right pane, select Proxy Service from the Create Resource menu, as shown in Figure 9-115.

    The General Configuration page is displayed, as shown in Figure 9-116.

    Figure 9-116 General Configuration Page

    General Configuration
    Description of "Figure 9-116 General Configuration Page"

  3. Provide a name for the Proxy Service and from the Service Type area select Any XML Service.

  4. Click Next.

    The Transport Configuration page is displayed, as shown in Figure 9-117.

    Figure 9-117 Transport Configuration Page

    Transport Configuration
    Description of "Figure 9-117 Transport Configuration Page"

  5. Select file from the Protocol list.

  6. Enter the path to an input folder on your file system in the Endpoint URI field.

  7. Click Next.

    The FILE Transport Configuration page is displayed, as shown in Figure 9-118.

    Figure 9-118 FILE Transport Configuration Page

    File Transport Configuration
    Description of "Figure 9-118 FILE Transport Configuration Page"

  8. Provide any folder locations on your file system for the Stage Directory and Error Directory fields.

  9. Click Next.

    The Message Content Handling page is displayed, as shown in Figure 9-119.

    Figure 9-119 Message Content Handling Page

    Message Content Heading
    Description of "Figure 9-119 Message Content Handling Page"

  10. Click Next.

    The Summary page is displayed, as shown in Figure 9-120.

    Figure 9-120 Summary Page

    Summary
    Description of "Figure 9-120 Summary Page"

  11. Review all the information for your Proxy Service and click Save.

Configuring a Pipeline

This section describes how to configure a Pipeline using the Oracle Service Bus Console.

  1. Click the Edit Message Flow icon in the row of the Proxy Service you created, as shown in Figure 9-121.

    Figure 9-121 Edit Message Flow Icon

    Edit Message Flow Icon
    Description of "Figure 9-121 Edit Message Flow Icon"

    The Edit Message Flow workspace area is displayed.

  2. Click the Proxy Service icon and select Add Pipeline Pair from the menu, as shown in Figure 9-122.

    Figure 9-122 Add Pipeline Pair Option

    Add Pipeline Pair
    Description of "Figure 9-122 Add Pipeline Pair Option"

  3. Click the PipelinePairNode1 icon and select Add Route from the menu, as shown in Figure 9-123.

    Figure 9-123 Add Route Option

    Add Route
    Description of "Figure 9-123 Add Route Option"

    Figure 9-124 Edit Route Option

    Edit Route
    Description of "Figure 9-124 Edit Route Option"

  4. Click the RouteNode1 icon and select Edit Route from the menu, as shown in Figure 9-124.

    Figure 9-125 Routing Option

    Add Routing
    Description of "Figure 9-125 Routing Option"

  5. Click Add an Action, select Communication from the menu, and click Routing, as shown in Figure 9-125.

    Figure 9-126 Edit Stage Configuration Workspace Area

    Add Service
    Description of "Figure 9-126 Edit Stage Configuration Workspace Area"

  6. Click <Service>, as shown in Figure 9-126.

    The Select Service dialog is displayed, as shown in Figure 9-127.

    Figure 9-127 Select Service Dialog

    Select Service dialog
    Description of "Figure 9-127 Select Service Dialog"

  7. Select a WSDL type Business Service and click Submit.

    You are returned to the Edit Stage Configuration workspace area, as shown in Figure 9-128.

    Figure 9-128 Edit Stage Configuration Workspace Area

    Edit Stage Configuration
    Description of "Figure 9-128 Edit Stage Configuration Workspace Area"

  8. Select GetDetail as the operational attribute from the list.

  9. Click Validate and then Save.

    Figure 9-129 Add Stage Option

    Add Stage
    Description of "Figure 9-129 Add Stage Option"

  10. Click the Response Pipeline icon and select Add Stage from the menu, as shown in Figure 9-129.

    The Stage1 icon is added below the Response Pipeline icon.

    Figure 9-130 Edit Stage Option

    Edit Stage
    Description of "Figure 9-130 Edit Stage Option"

  11. Click the Stage1 icon and select Edit Stage from the menu, as shown in Figure 9-130.

    The Edit Stage Configuration workspace area is displayed, as shown in Figure 9-131.

    Figure 9-131 Edit Stage Configuration Workspace Area

    Select Publish
    Description of "Figure 9-131 Edit Stage Configuration Workspace Area"

  12. Click Add an Action, select Communication from the menu, and click Publish.

    Figure 9-132 Edit Stage Configuration Workspace Area

    Add Service
    Description of "Figure 9-132 Edit Stage Configuration Workspace Area"

  13. Click <Service>, as shown in Figure 9-132.

    The Select Service dialog is displayed, as shown in Figure 9-133.

    Figure 9-133 Select Service Dialog

    Select Service dialog
    Description of "Figure 9-133 Select Service Dialog"

  14. Select a File type Business Service and click Submit.

    You are returned to the Edit Stage Configuration workspace area.

  15. Click Validate and then Save.

    The completed Pipeline is displayed, as shown in Figure 9-134.

    Figure 9-134 Completed Pipeline

    Completed Message Flow
    Description of "Figure 9-134 Completed Pipeline"

  16. Click Save.

  17. Click Activate in the Change Center area to activate your changes in the Oracle Service Bus session, as shown in Figure 9-135.

    Figure 9-135 Change Center

    Change Center
    Description of "Figure 9-135 Change Center"

  18. Copy and paste an input XML file in the input folder you have configured, as shown in Figure 9-136.

    Figure 9-136 Input XML File

    Input File
    Description of "Figure 9-136 Input XML File"

    An output XML file is received in the destination folder, as shown in Figure 9-137.

    Figure 9-137 Received Output XML File

    Output File
    Description of "Figure 9-137 Received Output XML File"