Skip Headers
Oracle® Application Server Adapter for Siebel User's Guide
10g Release 2 (10.1.2)
B14062-02
  Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
Next
Next
 

6 InterConnect Integration Examples

This chapter contains examples of service and event integration with Siebel.

The service and event scenarios shown depend on the following prerequisites and configuration steps:

Prerequisites


See Also:

Oracle Application Server Adapters Installation Guide

Configuration Steps

The examples present all the configuration steps necessary for demonstrating service integration with Siebel. The following cross references identify where more information can be obtained.

  1. Configure the OracleAS Adapter for Siebel for services. See Chapter 2, "Configuring Oracle Application Server Adapter for Siebel" for more information.

  2. Configure OracleAS Integration InterConnect iStudio for service interactions. For more information, see the following service and event steps.

  3. See Appendix A, "Using Siebel Workflows" for information on Siebel design requirements.

Creating Events

The following example describes how to create events for Siebel and how to create a channel and a port.

  1. Open Application Explorer.

  2. Expand the Adapters node.

    Disconnected Siebel node
    Description of the illustration siebel_target.gif

    Perform the following steps:

    1. Expand the Siebel node.

    2. Click the target name, for example, siebel, under the Siebel node.

    The Connection dialog box opens, populated with values you entered.

  3. Verify your connection parameters. If required, provide the password.

  4. Right-click the target name and select Connect.

    The x icon disappears, indicating that the target is connected.

    select Siebel node
    Description of the illustration siebel_objects.gif

  5. Expand the Integration Object node and select Sample Account.

    select Sample Account
    Description of the illustration sample_account2.gif

  6. Right-click the Sample Account node and select Add IO Node.

    Add IO Node
    Description of the illustration add_io_node.gif

  7. Enter a node name, for example SampleAccount in the Node name field and a path to the Sample Account XDR file in the Schema location field.

  8. Select a protocol from the Protocol list.

  9. Click Continue.

Creating Events for Sample Account

To create events for Sample Account:

  1. Right-click the Sample Account node and select Create Event Port.

    The Create Event Port dialog box is displayed.

    Create Event Port dialog box
    Description of the illustration create_eventport.gif

    Perform the following steps:

    1. Type a name for the event port and provide a brief description.

    2. From the list, select the required disposition, for example, RMI.

    3. Type the disposition URL.

    4. Type (or browse to) the path containing the DTD directory.

  2. Click OK.

    The port appears under the ports node in the left pane.

    ports node
    Description of the illustration port_added.gif

    In the right pane, a table appears that summarizes the information associated with the event port you created.

    detailed port information
    Description of the illustration port_details.gif

    You can now associate the event port with a channel.

Creating a Channel

To create a channel:

  1. In the left pane, click the Events node.

  2. Expand the Siebel node.

    The ports and channels nodes appear in the left pane.

    add channel
    Description of the illustration add_channel.gif

  3. Right-click Channels and select Add Channel.

    The Add Channel dialog box opens.

    Add Channel dialog box
    Description of the illustration add_channel2.gif

    Perform the following steps:

    1. Type a name for the channel, for example, SiebelEvent.

    2. Type a brief description.

    3. From the Protocol list, select HTTP Listener, MQ Series Listener, or File Listener.

    4. Select an event port from the list of available ports. To select more than one, hold down the Ctrl key and click the ports.

    5. To transfer the ports to the list of selected ports, click the double right (>>) arrow button.

  4. Click Next.

    The Basic dialog box opens.

    Basic dialog box
    Description of the illustration basic_channel.gif

  5. Enter a port number in the Listener port field.

  6. Select REQUEST_RESPONSE from the Synchronization Type drop-down list.

  7. Click OK.

    The channel appears under the channels node in the left pane.

    An X over the icon indicates that the channel is currently disconnected. You must start the channel to activate your event configuration.

    channel added
    Description of the illustration channel_added.gif

  8. Right-click the channel node and select Start.

    The channel you created becomes active.

    The X that was over the icon in the left pane disappears.

  9. To stop the channel, right-click the connected channel node and select Stop.

Siebel Event Integration

This topic illustrates Siebel event integration. The procedures describe design time and runtime.

OracleAS Integration InterConnect Design Time

The following procedures describe how to start the repository and create a common view and then, publish and subscribe an event.

Starting the Repository

To start the repository, double-click the start.bat file located in the following directory:

D:\oracle\ora92InterCon\oai\9.0.4\repository\start.bat  

Creating a Common View

To create a Common View:

  1. Start Oracle iStudio by double-clicking the start.bat file located in the following directory:

    D:\oracle\ora92iStudio\oai\9.0.4\istudio\iStudio.bat  
    
    

    iStudio is started.

    iStudio Open dialog box
    Description of the illustration new_proj.gif

  2. Open a project.

  3. Open Common Views and Business Objects.

  4. Create a Business Object called CustomerFL and a new event under CustomerFL.


Note:

The event name must be the root element of the DTD generated from Application Explorer. In this example, the root element in the DTD is Account.

Create Event dialog box
Description of the illustration create_event.gif

  1. Click Import and select XML from the list.

    Open DTD
    Description of the illustration select_dtd.gif

  2. Open the DTD generated from Application Explorer and load it.

    The Choose Root Element dialog box is displayed.

    Choose Root Element dialog box
    Description of the illustration select_rootelement.gif

  3. Select the root element, which must be identical to the event name specified earlier.

    Edit Event dialog box
    Description of the illustration siebel_event_attributes.gif

  4. Click Save.

Publishing an Event

To publish an event:

  1. Create a new application called SIEBELFL.

  2. Expand SIEBELFL.

  3. Right-click Publish Events and select New.

  4. Select XML as the message type and select Account under the SiebelAccountFL business object as the event.

  5. Click Next.

    Define Application View
    Description of the illustration common_view.gif

  6. Click Import and select Common View from the list.

    The structure from the selected Common View loads.

    Define Application View
    Description of the illustration siebel_message.gif

  7. Ensure you enter the root element of the XML message, for example, SiebelMessage.

  8. Click Next.

  9. Click New to create a mapping between the Common View and Application View.

    In this example, the Application View and Common View have the same structure. All the attributes can be mapped by using the ObjectCopy transformation.

    Mapping Parameters
    Description of the illustration siebel_mapping.gif

  10. Click Apply, OK, and then, Finish.

    The application definition for a published event is now complete.

Subscribing an Event

To subscribe an event:

  1. Create a new application called AQAPP.

  2. Expand AQAPP.

  3. Right-click Subscribe Events and select New.

    Select Event
    Description of the illustration select_event.gif

    Perform the following steps:

    1. Select AQ as the message type.

    2. Under the SiebelAccountFL business object, select Account as the event.

  4. Click Next.

    Define Application View
    Description of the illustration select_commonview.gif

  5. Click Next.

  6. Click New to define mapping between the Application View and the Common View.

    Mapping Parameters
    Description of the illustration mapping_parameters2.gif

    Perform the following steps:

    1. Define the mapping for each field.

    2. After you map each field, click Apply.

  7. When you have finished the mapping process, click OK.

    The application definition for a subscribed event is now complete.

OracleAS Integration InterConnect Runtime

The following topic describes how to trigger an event in Siebel to verify event integration using OracleAS Adapter for Siebel.

Verifying Event Integration

To verify event integration:

  1. Start Oracle Application Server or ensure that the server is running.

  2. Restart OC4J, if required, by executing the following command:

    \OracleAS_home\opmn\bin\opmnctl  stopproc process-type=home
    \OracleAS_home\opmn\bin\opmnctl  startproc process-type=home
    
    
  3. Check the status of OC4J by executing the following command:

    \OracleAS_home\opmn\bin\opmnctl  status
    
    
  4. Start the channel in Application Explorer.

    Start Siebel Channel
    Description of the illustration start_channel.gif

  5. Start the publishing adapter and the subscribing adapter, by executing the following commands:

    I:\oracle\ora10gRC3\integration\interconnect\adapters\AQAPP\start.bat
    I:\oracle\ora10gRC3\integration\interconnect\adapters\SIEBELFL\start.bat
    
    

Triggering an Event

To trigger an event in Siebel:

  1. Start the Siebel Call Center by entering the following URL in a browser:

    http://ariba01/callcenter/start.swe
    
    Mapping Parameters
    Description of the illustration select_sitemap.gif

  2. Click View and select Site Map from the list.

    The Site Map view is displayed.

    Site Map View
    Description of the illustration view_sitemap.gif

  3. Click Siebel Workflow Administration.

    The Siebel Workflow Administration page opens.

    Siebel Workflow Administration
    Description of the illustration workflow_processes.gif

  4. Click Workflow Processes.

    The Workflow Processes page opens.

    Workflow Processes
    Description of the illustration workflow_processes2.gif

  5. Click Query to search for the Workflow needed to trigger a Siebel event.

    Workflow Processes
    Description of the illustration workflow_processes3.gif

  6. Type a Siebel workflow name and click Search.

    Workflow Processes
    Description of the illustration workflow_processes4.gif

  7. Select the workflow.

    Process Designer tab
    Description of the illustration process_designer.gif

  8. Click the Process Designer tab and double-click the Send Siebel Quote Data HTTP workflow element.

    The Input Arguments tab displays.

    Input Arguments tab
    Description of the illustration input_arguments.gif

  9. Type the IP address and port for the HTTPRequestURLTemplate input argument.

  10. Click Return To Designer.

    Return to Designer
    Description of the illustration returnto_designer.gif

  11. Click the Process Simulator tab.

    Process Designer tab
    Description of the illustration process_simulator.gif

    The Simulator tab opens.

    Simulator tab
    Description of the illustration simulator_tab.gif

  12. Click Start then Continue to complete the Siebel event triggering process.

Verifying Results

The following section includes a sample publishing adapter (SIEBELFL) console log and subscribing adapter (AQAPP) console log.

Sample Publishing Adapter (SIEBELFL) Console Log

Publishing adapter (SIEBELFL) console log
Description of the illustration console_log1.gif

Sample Subscribing Adapter (AQAPP) Console Log

Subscribing adapter (AQAPP) console log
Description of the illustration console_log2.gif

Siebel Service Integration

This topic illustrates Siebel service integration. The procedures describe design time and runtime.

OracleAS Integration InterConnect Design Time

The following procedures describe how to start the repository and create a common view and then, define invoked and implemented procedures. Then, it describes how to export PL/SQL code from iStudio.

Starting the Repository

To start the repository, double-click the start.bat file located in the following directory:

D:\oracle\ora92InterCon\oai\9.0.4\repository\start.bat  

Creating a Common View

To create a Common View:

  1. Start Oracle iStudio by double-clicking the start.bat file located in the following directory:

    D:\oracle\ora92iStudio\oai\9.0.4\istudio\iStudio.bat  
    
    

    iStudio is started.

    iStudio Open dialog box
    Description of the illustration new_proj.gif

  2. Open a project.

  3. Open Common Views and Business Objects.

  4. Create a Business Object called SiebelQueryView.

    SiebelQueryView
    Description of the illustration create_proc.gif

  1. Create a new procedure under SiebelQueryView and type SiebelQueryView as the procedure name.

  2. Open the DTD generated from Application Explorer and load it.

    The Choose Root Element dialog box is displayed.

  3. Select the root element, Siebel, in this example.

  4. Click OK.

    Choose Import Type dialog box
    Description of the illustration in_arguments.gif

  5. Select IN arguments as the import type for the request DTD and click OK.

  6. Manually enter all the OUT parameters as shown in the following image.

  7. Select OUT arguments as the import type for the response DTD and click OK.

    out parameters
    Description of the illustration out_parms.gif

  8. To save the new procedure, click Save.

Creating an Invoked Procedure

To create an invoked procedure:

  1. Create a new application called DBAPP_Siebel.

  2. Right-click Invoked Procedures and select New.

    The Invoke Wizard - Select a Procedure window opens.

    invoke procedure
    Description of the illustration invoke_proc.gif

    Perform the following steps:

    1. From the Message Type list, select DATABASE.

    2. Expand the SiebelQueryView business object as the event and select SiebelQueryView.

  3. Click Next.

    The Invoke Wizard - Define Application View window opens.

    Invoke Wizard - Define Application View dialog box.
    Description of the illustration sel_common_view.gif

    Perform the following steps:

    1. Click Import.

    2. Select Common View.

      Information appears in the right pane.

      Define Application View dialog box
      Description of the illustration define_app_view.gif

    3. Select the Synchronous check box, as this is a request and a response.

  4. Click Next.

  5. Click New to create a mapping between the Common View and the Application View for the IN parameters. Mapping Parameters dialog box
    Description of the illustration map_parms.gif

    In this example, the Application View and the Common View have the same structure. All the attributes can be mapped by using ObjectCopy Transformation.

  6. Click Apply and then, OK.

  7. Click Next.

  8. Use ObjectCopy Transformation to map the attributes between Application View and Common View for the OUT parameters.

    Mapping OUT parameters
    Description of the illustration map_out_parms.gif

  9. Click Finish.

    iStudio generates SQL code.

    Generated SQL code
    Description of the illustration sql_code.gif

    The application definition for the invoked procedure is now complete.

Defining an Implemented Procedure

To define an implemented procedure:

  1. Create a new application called SiebelQuery_FL.

  2. Expand SiebelQueryView.

  3. Right-click Implemented Procedure and select New.

    The Implement Wizard - Select a Procedure window opens.

    SiebelQueryView
    Description of the illustration siebelqueryfl.gif

    Perform the following steps:

    1. From the Message Type list, select Generic .

    2. Expand the SiebelQueryView business object and select SiebelQueryView as the procedure.

  4. Click Next.

    Perform the following steps:

    1. Click Import.

    2. Select XML.

    3. Select the request and response DTDs generated by Application Explorer.

  5. Import the request and response DTDs into iStudio.

    Siebel root element
    Description of the illustration sel_siebel.gif

  6. Select Siebel as the root element of the request DTD.

    The Choose Import Type dialog box is displayed.

    Choose Import Type dialog box
    Description of the illustration in_arguments.gif

  7. Select IN arguments as the import type for the request DTD and click OK.

    The Implement Wizard - Define Application View window opens.

  8. Type the root element of the request DTD in the Object Name field, if it is not automatically populated after importing the request DTD and click Import.

    The Choose Root Element dialog box opens.

    SiebelResponse root element
    Description of the illustration siebel_response.gif

  9. Select SiebelResponse as the root element and click OK.

    Choose Import Type dialog box
    Description of the illustration out_argument.gif

  10. Select OUT arguments as the import type for the response DTD and click OK.

    Both the request and response DTDs are now imported into iStudio.

    Imported DTDs
    Description of the illustration imported_dtd.gif

  11. To define a mapping between the Application View and the Common View, click Next and then, New.

    CopyFields transformation
    Description of the illustration copyfields.gif

  12. Use the CopyFields transformation to map each field.

  13. Click Apply and then OK.

    When complete, your mapping should look similar to the following example.

    Mapping
    Description of the illustration service_name.gif

  14. To define the mapping for the OUT arguments, click Next.

    Mapping out parameters
    Description of the illustration mapping_out_parms.gif

  15. To complete the definition of the implemented procedure, click Next and then, Finish.

Exporting PL/SQL Code from iStudio

You must export the PL/SQL code created in "Defining an Implemented Procedure" and execute it against the appropriate schema. In this example, the schema used is DBAPP_Siebel.

To export PL/SQL code from iStudio:

File menu - Export PL/SQL selected
Description of the illustration export_plsql.gif

  1. In iStudio, click File and Export PL/SQL.

    The Export Application dialog box is displayed.

    Export Application dialog box
    Description of the illustration send_req.gif

    Perform the following steps:

    1. Select the application from which to export PL/SQL.

    2. Type or browse to the file prefix (path to the application).

  2. Click OK.

    In this example, two SQL scripts are created:

    • DBAPP_Siebel_SiebelQueryViewTYPES.sql

    • DBAPP_Siebel_SiebelQueryView.sql

  3. Log on to the database with the appropriate privileges (in this example, DBAPP_Siebel) and execute the following in the order given:

    • DBAPP_Siebel_SiebelQueryViewTYPES.sql

    • DBAPP_Siebel_SiebelQueryView.sql

  4. Create another stored procedure, SIEBELQUERYVIEW_EXE, in the same schema. It executes at runtime to create the database message that is sent to the hub.

CREATE OR REPLACE  PROCEDURE "DBAPP_SIEBEL"."SIEBELQUERYVIEW_EXE"
    (
servicename LONG,
methodname  LONG,
license     LONG,
viewmode    LONG,
location    LONG,
name        LONG,
field1      LONG,
field2      LONG
)
AS
  moid NUMBER;
  aoid NUMBER;
  coid NUMBER;
  siebelid NUMBER;
  namertn LONG;
  locationrtn LONG;
BEGIN
  SiebelQueryView.crMsg_SiebelQueryView_OAI_V1(moid, aoid);
  siebelid := SiebelQueryView.cr_Siebel_Siebel(servicename,methodname,license,viewmode,location,name,field1,field2,moid,aoid);
  coid := SiebelQueryView.inv_SiebelQueryView_OAI_V1(moid,'DBAPP_Siebel','',namertn,locationrtn);
  insert into customer
  (customerid,address)
  values
  (namertn,locationrtn);
  COMMIT;
END;

Editing the adapter.ini File

To edit the adapter.ini file:

  1. Open the adapter.ini file.

  2. Add the following two lines to adapter.ini for the adapter:

  3. // Bridge class
    bridge_class=com.iwaysoftware.iwbridge.IWBridge
     
    // IBSE URL	
    ibse_url=http://hostname:7777/ibse/IBSEServlet/XDSOAPRouter
    
    

Where hostname is the URL of the server and 7777 is the port number.

OracleAS Integration InterConnect Runtime

The following topic describes how to verify service integration using the OracleAS Adapter for Siebel.

Verifying Service Integration

To verify service integration:

  1. Start the Oracle Application Server or ensure that the server is running.

  2. Restart OC4J, if required, by executing the following command:

    \OracleAS_home\opmn\bin\opmnctl  stopproc process-type=home
    \OracleAS_home\opmn\bin\opmnctl  startproc process-type=home
    
    
  3. Check the status of OC4J by executing the following command:

    \OracleAS_home\opmn\bin\opmnctl  status
    
    
  4. Invoke and implement the adapter by executing the following commands:

    \InterConnect_HOME\oai\9.0.4\adapters\ SiebelQuery_FL\start.bat
    \InterConnect_HOME\oai\9.0.4\adapters\DBAPP_Siebel\start.bat
    
    
  5. Log on to SQL*Plus with DBAPP_Siebel and execute the following command:

    exec
    siebelqueryview_exe('SiebelObjQueryView','queryWithView','production','AllView',
    'S/BO/Account/Account/queryWithView','SIEBEL2 ACCOUNT','Location','Name');
    
    

    The following image shows the SiebelQuery_FL example. It receives a reply from Siebel and returns the reply to the hub.

    Siebel reply
    Description of the illustration siebel_start_bat.gif

    The following image shows the DBAPP_Siebel example. It receives a reply from the hub and writes the data to the database table.

    Adapter reply
    Description of the illustration adapter_reply.gif