Skip Headers
Oracle® Application Server Adapter for Siebel User's Guide
10g Release 2 (10.1.2)
B14062-03
  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
 

2 Configuring Oracle Application Server Adapter for Siebel

This chapter describes how to configure OracleAS Adapter for Siebel and create schemas for Siebel Business Objects.

This chapter discusses the following topics:

Encoding Support on UNIX Platforms

When using OracleAS Adapter for Siebel on UNIX environments, you must manually edit the startup script for your server to add a JVM option specifying the file encoding:

java $REMDBG -cp $CLASSPATH -DIWAY55=$IWAY55 -Dfile.encoding=ISO8859_1
edaqm -config $SCRIPT $2 $3 $4 $5 $6

Starting Application Explorer

Prerequisites

Before starting OracleAS Adapter Application Explorer (Application Explorer) and using Oracle Application Server Adapter for Siebel (OracleAS Adapter for Siebel), you must create \endorsed directories under your OracleAS_home directory and place a copy of the xalan.jar file in those directories. Otherwise, you will receive a transformation error when adding an IO node under an Integration Object in Application Explorer.

  1. Navigate to the OracleAS_home\j2ee\home\connectors\jca-app-adapter\jca-app-adapter directory and copy the xalan.jar file.

  2. Search on your machine for the following directories, then create an \endorsed subdirectory under each of these directories:

    • OracleAS_home\jdk\jre\lib\

    • OracleAS_home\jdk\lib\

    • OracleAS_home\jdk\....\lib\

    • OracleAS_home\jre\....\lib\

    • Any \jdk\....\lib or \jre\....\lib that is in your PATH environment variable

  3. Paste the xalan.jar file you copied in step 1 into each of the new \endorsed subdirectories.

    Important: Please note that you may not have all the directories listed above. This depends on your individual environment.

Launching Application Explorer

To start Application Explorer:

  1. Start the server where Application Explorer is deployed.

  2. From the Windows Start menu, select Programs, OracleAS_home Adapters, and then Application Explorer.

    On Windows, iaexplorer.bat is located under OracleAS_home\adapters\application\tools, where OracleAS_home is the directory where Oracle Application Server is installed.

    On UNIX, load the script iwae.sh, located under OracleAS_home/adapters/application/tools, where OracleAS_home is the directory where Oracle Application Server is installed.

    Application Explorer starts. You can now define new targets to your Siebel system.

Configuring Settings for BSE or J2CA

Before a configuration can be created, you must configure OracleAS Adapter Business Services Engine (BSE). You need not configure OracleAS Adapter J2CA because the ra.xml file is configured automatically during installation.

Configuring BSE

After BSE is deployed to Oracle Application Server, you can configure it through the BSE configuration page.

To configure BSE:

  1. Display the following page in your browser:

    http://hostname:port/bse
    
    

    Where hostname is the host name of Oracle Application Server and port is the HTTP port for Oracle Application Server.

    For example,

    http://localhost:7777/bse
    

    Note:

    This page might load slowly when accessed for the first time.

  2. Log on when prompted.

    When first installed, the user ID and the password are:

    • User name: admin

    • Password: admin

    The BSE configuration page is displayed.

    BSE configuration page
    Description of the illustration bse_config.gif

  3. Ensure that the Adapter Lib Directory parameter specifies the path to the lib directory, for example:

    OracleAS_home\adapters\application\lib
    
    

    After you specify the path, adapters in the lib directory are available to BSE.

  4. For security purposes, enter a new password in the Admin Password field.


    Note:

    The Repository URL field specifies where the file system repository is located. To use a database repository, you must enter the repository connection information. For the initial verification, use a file system repository. See "Configuring an Oracle Repository" for information on switching to a database repository.

  5. Click Save.

Configuring BSE System Settings

To configure BSE system settings:

  1. Display the BSE configuration page by using the following URL:

    http://hostname:port/ibse/IBSEConfig
    
    

    Where hostname is the machine where BSE is installed and port is the port number on which BSE is listening.

    Important: The server to which BSE is deployed must be running.

    The BSE settings window is displayed.

    The system settings pane in BSE.
    Description of the illustration ibse_config_page.gif

  2. Configure the system settings by providing information for the parameters according to the following table.

    Parameter Description
    Language Specify the required language.
    Adapter Lib Directory Enter the full path to the directory where the adapter jar files reside
    Encoding Specify the default encoding from one of the following options:
    • UTF-8

    • EBCDIC-CP-US

    • ISO-88859-1

    • Shift JIS

    • Shift JIS

    • UNICODE

    Debug Level Specify the debug level from one of the following options:
    • None

    • Fatal

    • Error

    • Warning

    • Info

    • Debug

    Number of Async. Processors Select the number of asynchronous processors.

    The following image illustrates the Security pane of the window.

    BSE security settings pane.
    Description of the illustration security.gif

  3. Configure the security settings by providing information for the parameters according to the following table.

    Parameter Description
    Admin User Provide an BSE administrator ID.
    Admin Password Enter the password associated with the BSE administrator ID.
    Policy Select the check box to enable policy security.

    The following image shows all of the fields and the check boxes for the Repository pane.

    Repository pane
    Description of the illustration ibse_config_repos_loc.gif

  4. Configure the repository settings by providing information for the parameters according to the following table.

    BSE requires a repository to store transactions and metadata required for the delivery of Web services.

    See "Configuring a File System Repository" and "Configuring an Oracle Repository" for more information.

    Parameter Description
    Repository Type Select one of the following repositories from the list:
    • Oracle

    • File (Do not use a file repository for BSE in production environments.)

    Repository URL Enter the URL to use when opening a connection to the database.
    Repository Driver Provide the driver class to use when opening a connection to the database (optional).
    Repository User Enter the user ID to use when opening a connection to the database.
    Repository Password Enter the password associated with the user ID.
    Repository Pooling Select the check box to enable pooling.

  5. Click Save.

Configuring a File System Repository

If you do not have access to a database for the repository, you can store repository information in an XML file on your local machine. However, a file system repository is less secure and efficient than a database repository. When BSE is first installed, it is automatically configured to use a file system repository.


Note:

Do not use a file repository for BSE in production environments.

The default location for the repository on Windows is:

OracleAS_home\j2ee\OC4J_CONTAINER\applications\ws-app-adapter \ibse\ibserepo.xml

On other platforms, use the corresponding location.

If you are using a file system repository, you are not required to configure any additional BSE components.

Configuring an Oracle Repository

To configure an Oracle repository:

  1. Contact your database administrator to obtain an Oracle user ID and password to create the BSE repository.

    This user ID should have rights to create and modify tables as well as the ability to create and run stored procedures.

  2. Open a command prompt and navigate to the setup directory. Its default location on Windows is:

    OracleAS_home\adapters\application\etc\setup
    
    

    For other platforms, see the corresponding location.

    This directory contains SQL to create the repository tables in the following file:

    iwse.ora
    

    Note:

    If Oracle is not on the same machine as Oracle Application Server, copy the iwse.ora file to the Oracle machine. Then, from a command prompt on the Oracle machine, navigate to the directory containing the iwse.ora file.

  3. Enter the following command:

    sqlplus userid/password @database @ iwse.ora
    

Configuring J2CA

During the J2CA deployment of OracleAS Adapter for Siebel, OC4J generates a deployment descriptor called oc4j-ra.xml. This descriptor provides OC4J-specific deployment information for resource adapters. See Chapter 3, "OC4J Deployment and Integration" for more information on J2CA deployment and configuration.

No configuration changes are necessary if you are using the default file based repository with J2CA deployment.

Configuring a Database Repository for J2CA

To configure a database repository for J2CA:

  1. Execute the iwse.ora SQL statement on the machine where the database is installed.

  2. Copy the jcatransport.properties file to the following directory:

    OracleAS_home\adapters\application\config\jca_sample
    
    
  3. Uncomment the following fields and enter details for them in the jcatransport.properties file. For example:

    iwafjca.repo.url=jdbc:oracle:thin:@90.0.0.51:1521:orcl
    iwafjca.repo.user=scott
    iwafjca.repo.password=scott1
    
    
  4. Alter the JDBC driver path in Application Explorer's lcp. For example:

    lcp=..\lib\orabpel-adapters.jar;C:\jdev\jdbc\lib\classes12.jar;C:\jdev\jdbc\lib\nls_charset12.jar;%lcp%
    to
    lcp=..\lib\orabpel-adapters.jar;..\..\..\jdbc\lib\classes12.jar;..\..\..\jdbc\lib\nls_charset12.jar;%lcp%
    
    

Creating a Repository Configuration

Before you use Application Explorer with OracleAS Adapter for Siebel, you must create a repository configuration. You can create two kinds of repository configurations, Web services and J2CA, depending on the container to which the adapter is deployed. During design time, the repository is used to store metadata created when using Application Explorer to configure adapter connections, browse EIS objects, configure services, and configure listeners to listen for EIS events. The information in the repository is also referenced at runtime.

A default J2CA repository is created for the default ManagedConnectionFactory. The name of this configuration is jca_sample.

Web services and BSE refer to the same type of deployment. See "Adapter Features" for more information.

Creating a Configuration for BSE

To create a configuration for BSE using Application Explorer, you must first define a new configuration.

Defining a New Configuration for BSE

To create a new configuration for BSE:

  1. Right-click Configurations and select New.

    The New Configuration dialog box is displayed.

  2. Enter a name for the new configuration (for example, SampleConfig) and click OK.

    The following dialog box is displayed.

    New configuration
    Description of the illustration app_exp_new_config_type.gif

  3. From the Service Provider list, select iBSE.

  4. In the iBSE URL field, accept the default URL or replace it with a different URL using the following format:

    http://hostname:port/ibse/IBSEServlet
    
    

    Where hostname is the machine where your application server resides and port is the port number on which the application server is listening.

  1. Click OK.

    A node representing the new configuration appears beneath the root Configurations node.

    New configuration
    Description of the illustration newconfig_a.gif

The BSE configuration file is stored in OracleAS_home\j2ee\home\applications\ws-app-adapter\ibse.

Creating a Configuration for J2CA

To create a configuration for OracleAS Adapter J2CA using Application Explorer, you must first define a new configuration.

Defining a New Configuration for J2CA

To define a new configuration for J2CA:

  1. Right-click Configurations and select New.

    The New Configuration dialog box is displayed.

    Defining a new configuration
    Description of the illustration selectnewconfig.gif

  2. Enter a name for the new configuration (for example, SampleConfig) and click OK.

    The New Configuration dialog box is displayed.

    JCA configuration
    Description of the illustration jcaconfig.gif

  3. From the Service Provider list, select JCA.

  4. In the Home field, enter a path to your J2CA configuration directory where the repository, schemas, and other information are stored, for example:

    OracleAS_home\adapters\application
    
    
  5. Click OK.

    A node representing the new configuration appears beneath the root Configurations node.

    New configuration
    Description of the illustration newconfig_a.gif

The OracleAS Adapter J2CA configuration file is stored in OracleAS_home\adapters\application\config\configuration_name

Where configuration_name is the name of the configuration you created; for example, SampleConfig.

Connecting to a BSE or J2CA Configuration

To connect to a new configuration:

  1. Right-click the configuration to which you want to connect, for example, SampleConfig.

  2. Select Connect.

    Nodes appear for Adapters, Events, and Business Services (also known as Web services). The Business Services node is only available for BSE configurations. If you are connected to a J2CA configuration, you will not see the Business Services node. The following is an example of a BSE configuration named SampleConfig:

    Connected SampleConfig target
    Description of the illustration wlw_newconfig8.gif

  • Use the Adapters folder to create inbound interaction with Siebel. For example, you use the Siebel node in the Adapters folder to configure a service that updates Siebel.

  • Use the Events folder to configure listeners that listen for events in Siebel.

  • Use the Business Services folder (available for BSE configurations only) to test Web services created in the Adapters folder. You can also control security settings for the Web services by using the security features of the Business Services folder.

You are now ready to define new targets to Siebel.

Establishing a Connection (Target) for Siebel

To browse the Siebel Business Services, Business Components, and Integration Objects, you must define a target to Siebel. After you define the target, the parameters are automatically saved. However, you must provide the password to Siebel every time you connect to the target.

Defining a Target to Siebel


Note:

The connection parameters required for defining a Siebel target can be obtained from the eapps.cfg file, which is located in the following directory:
drive:\SiebelRoot\SWEApp\BIN

Where Siebelroot is the Siebel installation directory.


To define a target to Siebel:

  1. In the left pane, expand the Adapters node.

    expanded adapter list
    Description of the illustration adapterexpandedpartial.gif

  2. Right-click the Siebel node and select Add Target.

    The Add Target dialog box is displayed. Provide the following information:

    1. In the Name field, enter a name for the new target.

    2. In the Description field, enter a description (optional).

    3. From the Target Type list, select the type of target. For Siebel 6.0, choose Siebel 6.2 or lower (COM). For Siebel 6.3 or higher, choose Java Bean Data Connection.

  3. Click OK.

    When you select Siebel 6.2 or lower (COM):

    1. In the User Agent File field, enter the name of the configuration file.

    2. In the Username field, enter the user name.

    3. In the Password field, enter the password associated with the user name.

    4. In the Repository field, enter the Siebel Repository where Application Explorer looks for metadata describing Business Services, Business Objects, and Integration Objects.

      If no repository is specified, a full list of objects from all available repositories will be returned. If a specified repository is not found, an empty list of objects will be returned.

    When you select 6.3 or higher (JDB):

    1. In the Gateway Server field, enter the name of the server. To specify a Gateway Server that uses a port other than the default (usually, 2320), add a colon and the port number, for example, gateway name:port number.

    2. In the Enterprise Name field, enter the appropriate name.

    3. In the Siebel Server field, enter the name of your Siebel server. Do not supply a value in this field when connecting to a Siebel 7.7 or 7.8 system.

    4. In the User field, enter the user name.

    5. In the Password field, enter the password associated with the user name.

    6. Click the Advanced tab and verify the following:

      Language

      Object Manager

      For Siebel 7.0.3, the default Object Manager is EAIObjMgr. For Siebel 7.7, the default is EAIObjMgr_enu. Siebel 7.7 requires that you add a language extension (for example, _enu) to the end of the Object Manager name. Check with your Siebel Administrator for the specific names that apply to your system.

      If no repository is specified, a full list of objects from all available repositories is returned. If a specified repository is not found, an empty list of objects is returned.

      The configuration parameters supplied are used by Siebel client applications to connect to the Siebel system. For more information about these parameters, see your Siebel documentation or ask your Siebel system administrator.

      Repository Manager

      If no repository is specified, a full list of objects from all available repositories will be returned. If a specified repository is not found, an empty list of objects will be returned.

      The configuration parameters supplied are those used by Siebel client applications to connect to the Siebel system. For more information about these parameters, see your Siebel documentation or ask your Siebel system administrator.


    Note:

    These parameters are typically found in Siebel configuration files stored under the Siebel server root/bin/<language> directory, where language is the Siebel code for the language you installed (enu for U.S English). For example, for Siebel versions 7 and higher on a Windows platform, for the Siebel Call Center module, these values can be found in the uagent.cfg file. Consult your Siebel administrator and your Siebel bookshelf documentation for more information.

  4. Click OK.

    In the left pane, the target you create appears under the Siebel node.

Connecting to a Defined Target

To connect to a defined target:

  1. Expand the Siebel node and click the target name to which you want to connect.

    Siebel target
    Description of the illustration siebel_target.gif

  2. In the right pane, enter the password for that target.

  3. In the left pane, right-click the target name and select Connect.

    The target icon changes, indicating that you are connected to the Siebel system.

    Connected Siebel target
    Description of the illustration siebel_objects.gif

You can now browse the available Business Objects, Business Services, and Integration Objects in the Siebel system.

Disconnecting From Siebel

Although you can maintain multiple open connections to different application systems, it is good practice to close connections when not in use.

To disconnect from Siebel:

  1. In the left pane, select the target to which you are connected.

  2. Right-click the target and select Disconnect.

    Disconnecting from the application system drops the target, but the node remains. The SiebelConnection node in the left pane changes to reflect that the target is disconnected.

    Siebel target
    Description of the illustration siebel_target.gif

Editing a Target

To edit a target:

  1. In the left pane, ensure the target you wish to edit is disconnected.

  2. Right-click the disconnected target and select Edit.

    Editing a target
    Description of the illustration edit_target.gif

    The Edit pane is displayed on the right.

  3. Modify the target information.

  4. Click OK.

Deleting a Target to Siebel

You can delete a target, rather than just disconnecting and closing it. When you delete the target, the node disappears from the list of Siebel targets in the left pane of Application Explorer.

To delete a target:

  1. In the left pane, select the target.

  2. Right-click the target and select Delete.

    A confirmation dialog box is displayed.

  3. Click OK to delete the target you selected.

    The Siebel connection node disappears from the left pane.

Viewing Application System Objects

Application Explorer gives you the flexibility to view all Siebel application system objects. One benefit of this flexibility is that you can gain an understanding of the Siebel data structure. You can review parameters, data types, and other attributes of the Siebel data in the right pane.

Viewing Metadata

To view metadata:

  1. If you have not started Application Explorer, start Application Explorer and connect to your Siebel system.

  2. In the left pane, expand the Business Object or Business Service containing the component for which you want to generate schema.

  3. Expand the Business Object or Business Service node.

  4. Expand the Business Component or the Business Service node to view the objects under it.

  5. In the right pane, click the ellipsis (...) in the Table row of the properties table.

    The metadata table appears in the right pane.

    Metadata table for Siebel object.
    Description of the illustration app_exp_showmetadata.gif

Creating XML Schemas

You can create service schemas for Business Services and Business Components using Application Explorer.

The following topic describes how to create schemas for the adapter when you deploy OracleAS Adapter for Siebel for use either in a J2CA environment or a Web services environment. See "Creating and Testing a Web Service (BSE Configurations Only)" if you plan to deploy OracleAS Adapter for Siebel in a Web services environment.

Creating an XML Schema for a Siebel Business Object or Business Service

You create schemas for Siebel Business Service methods (for example, the Add method) and Business Components using Application Explorer. After you create a schema, you can use it to generate service request and response schemas for the Business Service or Business Component.

Siebel Business Objects contain one or more Siebel Business Components. You can view Business Components by clicking the associated Business Object.

The following image shows the Account Business Object expanded to display all Business Components.

A Siebel Account Business Object expanded.
Description of the illustration account_expanded.gif

Creating an XML Schema for a Siebel Business Component or Business Service

To generate service request and response schemas for a Business Component or Business Service:

  1. If you have not started the Application, start Application Explorer and connect to your Siebel system.

  2. In the left pane, expand the Business Object or the Business Service node.

  3. Expand the Business Component or Business Service to view the objects under it.

  4. Right-click the node and select Generate Schema.

    Application Explorer accesses the Siebel repository and builds schemas.

    Schema tabs similar to the following appear in the right pane.

    The Schemas table.
    Description of the illustration app_exp_bus-obj_schema_t.gif

  5. To view a schema, click the ellipsis tab corresponding to the schema you want to view.

    The schema appears on the right.

    An example of a schema generated by the adapter.
    Description of the illustration app_exp_sieb_acct_schema.gif

Searching for a Specific Siebel Object

You can use the search function in Application Explorer to locate a Siebel object or node quickly.

  1. If you have not started the explorer, start Application Explorer and connect to your Siebel system through a target.

  2. Expand the target and select Business Object, Business Service, or Integtration Object.

  3. In the right pane, move the cursor over Operations and select Search.

  4. Enter the name of the node or object on which you want to search in the text entry box, for example, Account.

  5. Click OK.

    A list containing the Siebel items that match your search appears.

  6. Select the item in which you are interested.

    Application Explorer locates the item in which you are interested.

Returning Fields in a Specified Order

When you create a request document from an XML schema to query the Siebel system, you can limit the expected response to specific fields that are specified in the query. The response will contain the fields in the order in which they were specified. If you do not specify a set of fields, the response document contains the entire set.

For example, the following query will return all fields:

<m:Siebel location="S/BO/Account/Account/queryWithView" view="AllView">
  <m:select>
   <m:Name>Yelena*</m:Name>
  </m:select>
</m:Siebel>

The following query will return a response that only contains the fields Name, Location and Account Status fields:

<m:Siebel location="S/BO/Account/Account/queryWithView" view="AllView">
  <m:select>
    <m:Name>Yelena*</m:Name>
  </m:select>
  <m:field>Name</m:field>
  <m:field>Location</m:field>
  <m:field>Account Status</m:field>
</m:Siebel>

Using QueryWithView

For Business Components, the iWay Application Adapter for Siebel enables Insert, Update, Delete, and Query. It also enables a method called QueryWithView. The View modes are a visibility feature provided by Siebel.

By using QueryWithView, you can specify a Siebel View mode as a parameter. The API parameters allow different presentations of data depending on the Siebel environment that you configured.

You can use Query except when you want to enable a user to retrieve records based on different view modes. In this case, use QueryWithView. For more information on QueryWithView mode or Siebel "Visibility" concepts, see your Siebel Administrator.

The following levels are available:

Creating Schemas for Siebel Integration Objects

To create XML schemas for Siebel Integration Objects, you may have to generate XDR schemas first, using the Siebel Tools Schema Wizard.

The XDR schema is used as input to Application Explorer when generating schemas for integration objects. After you generate the XDR schema, Application Explorer uses the XDR file to generate the XML schema.

Please note:

OracleAS Adapter for Siebel supports access to Siebel Integration Objects by using Siebel XML to handle events. Using Siebel Integration Objects through supported transports requires Siebel workflows.

Creating a Siebel XDR or XSD Schema for a Siebel Integration Object

To generate a Siebel XDR or XSD schema:

  1. Log on to Siebel Tools.

    Siebel log on window.
    Description of the illustration sibu_04_logon.gif

    Perform the following steps:

    1. Enter your user ID and password.

    2. Select a database from the list.

  2. Click OK.

    The Siebel Tools window is displayed. Integration Objects appear in the right pane.

    Siebel Tools window.
    Description of the illustration sibu_04_integobj.gif

  3. To create a schema, select an Integration Object, for example, Sample Account.

  4. Click Generate Schema.

    The Generate XML Schema wizard is displayed.

    Opening window of Siebel Generate XML Schema.
    Description of the illustration sibu_genxmlschema.gif

    Perform the following steps:

    1. From the Select a Business Service list, select EAI XML XDR Generator for XDR schemas or EAI XML XSD Generator for XSD schemas (for Siebel 7.5 and later).

    2. From the Select an envelope type list, select Siebel Message envelope.

    3. In the Choose the file name field, specify a file name for the XDR schema and a directory where it can be accessed by Application Explorer.


      Note:

      The XDR schema file must be saved to a directory on the same computer as Application Explorer.

  5. Click Finish.

    Now you can use Application Explorer to generate XML schemas for the Siebel Integration Object.

Creating a Schema from a Siebel XDR Schema

After you create the Siebel XDR schema for a selected Siebel Integration Object, you can create an XML schema using Application Explorer.

You must provide Application Explorer with the location of the previously created Siebel XDR schema for the particular integration object selected.


Note:

The XDR file must be on the same computer as Application Explorer or be available through a mapped connection to another drive or machine.

To create a schema from a Siebel XDR Schema:

  1. In Application Explorer, expand the Integration Objects node to browse the Integration Objects in the Siebel system.

    Siebel Integration Objects node expanded.
    Description of the illustration sampleaccount.gif

  2. Scroll down and select an integration object, for example, Sample Account.

  3. To generate event schema, right-click the object and choose Add event.

    The Add Event dialog box is displayed. Perform the following steps:

    1. In the Node name field, enter a name for the node to be created under Sample Account.

    2. Enter or browse to the location of the XDR schema where Application Explorer generates the service or event schema.

  4. Click Add.

    The Schemas pane is displayed.

    Schemas table for Siebel Integration Object.
    Description of the illustration app_exp_event_gen_sche.gif

  5. To view the XML for a schema, click the Event Schema tab.

    The results appear in the right pane.

    A schema generated for a Siebel Integration Object.
    Description of the illustration app_exp_sampacct_bo_schema.gif

  6. Click the browser Back button to return.

    A directory structure is created to store the schemas.

    You can now create an Integration Object node for Siebel. See "Creating Integration Object (IO) Nodes for Siebel" for more information.

Creating Integration Object (IO) Nodes for Siebel

To create an Integration Object node for Siebel, perform the following steps:

  1. In Application Explorer, connect to a defined target. See "Connecting to a Defined Target" for information on how to connect to a target.

    The X over the icon disappears, indicating that the target is connected.

    select Siebel node
    Description of the illustration siebel_objects.gif

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

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

    The Add IO Node dialog box is displayed.

    Add IO Node
    Description of the illustration add_io_node.gif

    Please note:

    • For Siebel 7.5 or later: Generate XSD schemas directly from Siebel tools. You use the XSD schemas when you create Web services in Application Explorer. After you generate an XSD schema through Siebel tools, use it to create an IO node and a Web service.

    • For Siebel 7.0: You cannot generate XSD schemas directly from Siebel tools; only XDR schemas can be created. Before you create a Web service, you must first generate an XSD schema from the XDR schema using Application Explorer.

  4. 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.

  5. If the XSD schema has already been generated, select XSD Schema. If you are using Siebel-generated XDR schemas, do not select the XSD schema option.

  6. Select a protocol from the Protocol list.

  7. Click Continue.

Creating and Testing a Web Service (BSE Configurations Only)

You can generate a business service (also known as a Web service) for Siebel objects you wish to use with your adapter after you have properly configured the servlet BSE.


Note:

In a J2EE Connector Architecture (J2CA) implementation of adapters, Web services are not available. When the adapters are deployed to use OracleAS Adapter J2CA, the Common Client Interface provides integration services using the adapters.

This section contains the following topics:

Creating a Service for a Business Service Having a Method Argument of Type Integration Object Hierarchy Type (Siebel Message)

OracleAS Adapter for Siebel allows you to add a service node for a Business Service that includes methods containing method arguments having hierarchy data types.

Important limitations:

  • The adapter supports only Integration Object hierarchy data types.

  • Adding a Service node requires that you have previously generated an XSD schema for the Integration Object. For more information on generating XSD schemas for Siebel Integration Objects, see "Creating Schemas for Siebel Integration Objects".

  • Only one of the method arguments for the Business Service method for which you want to add a service node can be a hierarchical data type.

  • The method argument XMLCharEncoding is not supported. Leave this element blank in the XML payload. If you enter a valid XMLCharEncoding value such as UTF-8 or UTF-16, you will get the following error:

    Invocation of Service failed.
    
    

To create the service:

  1. Select the Business Service node in which you are interested.

  2. Right-click the Business Service method argument for which you want to create a service and select Add Service Node.

    The Add Service Node dialog box is displayed.

    Add Service Node dialog box
    Description of the illustration add_servnode_dialog.gif

  3. Perform the following steps:

    1. Provide a service node name.

    2. Enter a description (optional).

    3. Provide the full path (including the file name) to the XSD schema file.

    4. Specify the root element for the XSD schema file. For many XSD schemas for Integration Objects, the root element is SiebelMessage.

    5. Specify whether the XSD schema is for an Integration Object.

      Important: You must verify that this check box is selected.

  4. Click OK.

    The Service node is listed under the Business Service object.

    The Service node appears under the Business Service object
    Description of the illustration servnodeadded.gif

    You can right-click this node to create a Web service. The request and response schemas are displayed in the right pane.

The following procedure describes how to create a Web service for a Business Object.

Creating a Web Service

To generate a Web service for a Siebel Business Object:

  1. Connect to your Siebel system.

  2. Expand a Business Object node.

  3. Expand the Business Component for which you want to create a Web service.

    The Account Business Component expanded.
    Description of the illustration appexp_select_busobjquery.gif

  4. Expand the object and select a method for creating the Web service, for example, QueryWithView under Account.

  5. Right-click the node from which you want to create a business service and select Create Business Service.

    The Create Web Service dialog box is displayed.

    You can add the business object as a method for a new Web service or as a method for an existing one. Perform the following steps:

    1. From the Existing Service Names list, select either <new service> or an existing service.

    2. Specify a service name if you are creating a new service. This name identifies the Web service in the list of services under the Business Services node.

    3. Enter a description for the service (optional).

    4. Select one of the available licenses.

  1. Click Next.

    The License and Method dialog box is displayed. Perform the following steps:

    1. In the License field, select one or more license codes to assign to the Web service. To select more than one, hold down the Ctrl key and click the licenses.

    2. In the Method Name field, enter a descriptive name for the method.

    3. In the Description field, enter a brief description of the method.

  2. Click OK.

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

Testing a Web Service

After you create a Web service for the Siebel Business Object, test it to ensure it functions properly. Application Explorer includes a test tool for testing a Web service.

Testing a Web Service for a Business Object

  1. In the left pane of Application Explorer, expand the Business Services node.

  2. Expand the Services node.

  3. Select the name of the business service you want to test.

    New Web service added on Business Services tab.
    Description of the illustration app_exp_test_select_busobj.gif

  4. Expand the Methods node under the service and select the method you want to test.

    The test option appears in the right pane.

    If you are testing a Web service that requires XML input, an input field appears.

  5. Click Invoke.

    Application Explorer displays the results in the results pane.

    Successful test of a Web service.
    Description of the illustration appexp_querywidviewresults.gif

Testing a Web Service for a Business Service

After you create a Web service for the Siebel Business Service, test it to ensure it functions properly. Application Explorer includes a test tool for testing a Web service.

  1. If it is not expanded, expand the Business Services node.

  2. Expand the Services node.

  3. Select the name of the business service you want to test.

  4. Expand the Methods node and select the name of the method you want to test.

    The test option appears in the right pane.

    If you are testing a Web service that requires XML input, an input field appears.

  5. Provide the appropriate input.

  6. Click Invoke.

    Application Explorer displays the results in the results pane.

Identity Propagation

If you test or execute a Web service using a third party XML editor, for example XMLSPY, the Username and Password values that you specify in the SOAP header must be valid and are used to connect to Siebel. The user name and password values that you provided for Siebel during target creation using Application Explorer are overwritten for this Web service request. The following is a sample SOAP header that is included in the WSDL file for a Web service:

<SOAP-ENV:Header>
  <m:ibsinfo xmlns:m="urn:schemas-iwaysoftware-com:iwse">
    <m:service>String</m:service>
    <m:method>String</m:method>
    <m:license>String</m:license>
    <m:disposition>String</m:disposition>
    <m:Username>String</m:Username>
    <m:Password>String</m:Password>
    <m:language>String</m:language>
  </m:ibsinfo>
</SOAP-ENV:Header>

You can remove the <m:disposition> and <m:language> tags from the SOAP header, since they are not required.

Generating WSDL (J2CA Configurations Only)

The Web Service Definition Language (WSDL) description of a Web service enables you to make the service available to other services within a host server. You use Application Explorer to create both request-response (outbound) and event notification (inbound) JCA services of the adapter.


Note:

The Create Inbound JCA Service (Event) option is only available when the selected node supports events.

To generate a WSDL file for request-response service:

  1. Under your connected Siebel target, expand Business Object, Account, Account. Navigate to an object and right-click the object.

    The following menu is displayed.

    WSDL Generation
    Description of the illustration wlae_exportwsdl.gif

  2. Select Create Outbound JCA Service (Request/Response).

    The Export WSDL dialog box is displayed.

    Export WSDL dialog box
    Description of the illustration export_wsdl.gif

  3. Accept the default name and location for the file.

    The .wsdl file extension is added automatically. By default, the names of WSDL files generated for request-response services end with _invoke, while those generated for event notification end with _receive.

    You can organize your WSDL files in subfolders, creating your own WSDL hierarchy structure. Create the folders under OracleAS_home\adapters\application\wsdls\. The WSIL browser in JDeveloper will display the full tree structure of your WSDL hierarchy.

  4. Click OK.

    The WSDL file is saved in the specified location.

    The procedure for generating WSDL for event notification is similar to request-response. To generate WSDL for event notification, you must first create a channel for every event. See "Generating WSDL for Event Notification" for a detailed example.

Configuring an Event Adapter

Events are generated as a result of a specific business condition being satisfied or triggered in the Siebel system. You can use events to trigger an action in your application. For example, an update to a database can reflect an update to customer information. If your application must perform when this happens, your application is a consumer of this event.

After you create a connection to your application system, you can add events using Application Explorer. To configure an event, you must create a port and a channel.


Note:

If you are using a J2CA configuration, you must create a new channel for every event and select this channel when you generate WSDL. Additionally, you are not required to create or configure ports for use with BPEL Process Manager. See "J2CA Filtering Port Option for Integration with BPEL Process Manager" for details on using ports under a J2CA configuration.


Note:

OC4J currently conforms to J2CA 1.0, which does not call for event capabilities. When conforming to J2CA 1.0, only service interactions are supported.

Please note that adding IO node functionality is not applicable in event configurations.

This section contains the following topics:

Creating and Modifying an Event Port

You can create an event port for a Siebel Integration Object from the Events node in Application Explorer. To create event ports for Siebel Business Objects and Siebel Business Services, you must use the Events node.


Note:

You are not required to create event ports for J2CA configurations. You must create event ports for BSE configurations only.

Creating an Event Port from the Adapters Node

For Siebel Integration Objects, you can bypass the Events node and create an event port directly from the Adapters node.

  1. Select the IO node you created.

  2. Right-click the IO node and select Add Port.

    The Add Port dialog box is displayed. Perform the following steps:

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

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

    3. In the URL field, enter the disposition URL.

  3. Click OK.

  4. Create a DTD for a Siebel event in one of two ways:

    • Right-click the IO node under Integration Objects, and select Create Web Service. A DTD created this way will have the name of <Node_Name>_request.dtd.

      Or

    • Right-click the IO node under Integration Objects, and select Create Event Port. A DTD created this way will have a name of <Node_Name>_event.dtd.

The following procedure describes how to create an event port from the Events node for an RMI disposition using Application Explorer.

To create an event port for Siebel Integration Objects, you must first indicate the location of the XDR schema for that object. See "Creating a Schema from a Siebel XDR Schema" for more information.

Creating an RMI Event Port from the Events Node

To create a specific event port for RMI:

  1. Click the Events node.

    Events node
    Description of the illustration eventexpandedpartial.gif

  2. Expand the Siebel node.

  3. Right-click the Ports node and select Add Port.

    The Add Port dialog box is displayed. Perform the following steps:

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

    2. From the Protocol list, select RMI.

    3. In the URL field, specify a destination file to which the event data is written using the following format:

      rmi://host:port;RemoteObject=APPNAME
      
      

      Where APPNAME is the adapter name for the EIS Adapter Plugin you configured. The value for APPNAME must be in uppercase.

    4. From the Disposition protocol list, select RMI.

    The following table defines the parameters for the disposition.

    Parameter Description
    host The host name or IP address from which the RMI server accepts RMI requests. If you omit this attribute, the RMI server will accept RMI requests from any host.
    port The port number on which the RMI server listens for RMI requests.
    RemoteObject A home or Enterprise JavaBeans (EJB) object.

  4. Click OK.

    The port appears under the ports node in the left pane. In the right pane, a table appears that summarizes the information associated with the event port you created.

    You are ready to associate the event port with a channel. See "Creating and Modifying a Channel" for more information.

Editing an Event Port

To edit an event port:

  1. In the left pane, select the event port you want to edit.

  2. Right-click the port and select Edit.

    The Edit Port pane is displayed.

  3. Make the required changes and click OK.

Deleting an Event Port

To delete an event port:

  1. Select the event port you want to delete.

  2. Right-click the port and select Delete.

    A confirmation dialog box is displayed.

  3. To delete the event port you selected, click OK.

    The event port disappears from the list in the left pane.

J2CA Filtering Port Option for Integration with BPEL Process Manager

This feature provides the option to use event ports when using OracleAS Adapter for Siebel with BPEL PM under a J2CA configuration. Without this feature, all messages from a particular channel are forwarded to the endpoint and then to the BPEL PM Server. In this case, no schema validation takes place. With the filtering feature, you have the option to associate an event schema to a port that you create and configure in Application Explorer. In this case, at runtime the message is validated against the event schema and only the validated event message is forwarded to the endpoint. If the event message does not match the event schema that is associated to the port, then an error message is written to the log and the event message is ignored.

Creating and Modifying a Channel

The following procedure describes how to create a channel for your event. All defined event ports must be associated with a channel.


Note:

If you are using a J2CA configuration, you must create a new channel for every event and select this channel when you generate WSDL. Creating a channel is required for both BSE and J2CA configurations.

If you are planning to integrate OracleAS Adapter for Siebel with BPEL Process Manager, do not start the channel, as it is managed by the BPEL PM Server. If you start the channel for testing and debugging purposes, stop it before runtime.


Three channel types are available:

  • HTTP

  • MQ Series

  • File


Note:

OC4J currently conforms to J2CA 1.0, which does not call for event capabilities. When conforming to J2CA 1.0, only service interactions are supported.

Creating an HTTP Channel

To create a channel:

  1. Click the Events node.

    The Events window is displayed. The adapters that appear in the left pane support events.

  2. In the left pane, expand the Siebel node.

    The ports and channels nodes appear.

  3. Right-click channels and select Add channel.

    The Add Channel dialog box is displayed.

    Add Channel dialog box
    Description of the illustration add_channel2.gif

    Perform the following steps:

    1. Enter a name for the channel, for example, NewChannel.

    2. Enter a brief description.

    3. From the list, select HTTP Listener.

      The following image shows the Select Ports dialog box.

      Image showing ports available to a channel.
      Description of the illustration app_exp_siebel_addport.gif

      Important: If you are using BPEL Process Manager with a J2CA configuration without the optional port feature, skip the following two steps. See "J2CA Filtering Port Option for Integration with BPEL Process Manager".

    4. Select an event port from the list of current ports.

    5. To transfer the port to the list of available ports, click the double right (>>) arrow. To associate all the event ports, control-click to select each port or click one port and press Control+A. Then, click the double right (>>) arrow.

  4. Click Next.

  5. When the dialog box is displayed, enter the system information as specified in the following table.

    Parameter Description
    Port Port on which to listen for Siebel event data.
    Server port Port on which the host database is listening.
    Synchronization Type Synchronization types are not applicable to Siebel events.

  6. Click OK.

    The summary pane is displayed.

    A summary provides the channel description, channel status, and available ports. All the information is associated with the channel you created.The channel also appears under the channels node in the left pane

    New channel added under channels node.
    Description of the illustration app_exp_new_channel_added.gif

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

  7. Right-click the channel and select Start.

    The channel you created becomes active. The X over the icon in the left pane disappears.

  8. To stop the channel, right-click the channel and select Stop.

Creating an MQ Series Listener

To create an MQ Series listener:

  1. Click the Events node.

    The Events window is displayed. The adapters that appear in the left pane support events.

  2. In the left pane, expand the Siebel node.

    The ports and channels nodes appear.

  3. Right-click the channels node and select Add channel.

    The Add a new channel pane is displayed. Perform the following steps:

    1. Enter a name for the channel, for example, NewChannel.

    2. Enter a brief description.

    3. From the list, select MQ Series Listener.

      The following image shows the Select Ports dialog box.

      The ports available to be assigned to a channel.
      Description of the illustration app_exp_siebel_addport.gif

      Important: If you are using BPEL Process Manager with a J2CA configuration without the optional port feature, skip the following two steps. See "J2CA Filtering Port Option for Integration with BPEL Process Manager".

    4. Select an event port from the list of current ports.

    5. To transfer the port to the list of available ports, click >>. To associate all the event ports, control-click to select each port or click one port and press Control+A. Then, click >>.

  4. Click Next.

  5. When the dialog box is displayed, enter the system information as follows.

    1. In the Request tab, enter values for the following parameters:

      Parameter Description
      Queue manager name The host on which the MQ Server is located (MQ Client only).
      MQ server host for MQClient operation Port on which the host database is listening.
      MQ server port for MQClient operation The number to connect to an MQ Server queue manager (MQ client only).
      REQUEST
      REQUEST_RESPONSE
      REQUEST_ACK
      
      MQ server channel for MQClient operation The case-sensitive name of the channel that connects with the remote MQ Server queue manager (MQ client only). The default channel name for MQSeries is SYSTEM.DEF.SVRCONN.
      Document type XML Leave the default selection.
      Request queue name Queue where the message is routed and where request documents are received. The name of the queue is case-sensitive and conforms to the following format:
      Host\queue type$\qName
      

      Host

      Is the machine name where the MQ Series queuing system is running.

      queue type

      Private queues are queues that are not published in Active Directory and appear only on the local computer where they reside. Private queues are accessible only by Message Queuing applications that recognize the full path name or format name of the queue.

      qName

      Is the name of the queue where messages are placed, for example,

      iwaykxc1\Private$\siebel
      

    2. In the Response tab, enter values for the following parameters:

      Parameter Definition
      Synchronization Type Synchronization types are not applicable to Siebel events.

    3. In the Advanced tab, enter values for the following parameters.

      Parameter Definition
      Error Directory Directory to which documents with errors are written.
      Message wait interval (msec) The interval (in milliseconds) when to check for new input. The default is 3 seconds. Optional.
      Mode of operation Choose Sequential or Threaded.
      • Sequential indicates single processing of requests.

      • Threaded indicates processing of multiple requests simultaneously.

      Thread limit If you selected threaded processing, indicate the maximum number of requests that can be processed simultaneously.

  6. Click OK.

    The summary pane is displayed.

    A summary provides the channel description, channel status, and available ports. All the information is associated with the channel you created. The channel also 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.

  7. Right-click the channel and select Start.

    The channel you created becomes active. The X over the icon in the left pane disappears.

  8. To stop the channel, right-click the channel and select Stop.

Creating a File Listener

  1. Click the Events node.

    The Events window is displayed. The adapters that appear in the left pane support events.

  2. In the left pane, expand the Siebel node.

    The ports and channels nodes appear.

  3. Right-click the channels node and select Add Channel.

    The Add Channel dialog box is displayed. Perform the following steps:

    1. Enter a name for the channel, for example, NewChannel.

    2. Enter a brief description.

    3. From the list, select File Listener.

      The following image shows the Select Ports dialog box.

      The ports available to be assigned to a channel.
      Description of the illustration app_exp_siebel_addport.gif

      Important: If you are using BPEL Process Manager with a J2CA configuration without the optional port feature, skip the following two steps. See "J2CA Filtering Port Option for Integration with BPEL Process Manager".

    4. Select an event port from the list of current ports.

    5. To transfer the port to the list of available ports, click the double right (>>) arrow. To associate all the event ports, control-click to select each port or click one port and press Control+A. Then, click the double right (>>) arrow.

  4. Click Next.

  5. When the dialog box is displayed, enter the system information as follows.

    1. In the Request tab, enter values for the following parameters:

      Parameter Description
      Polling Location The target file system location for the Siebel XML file.
      File Mask The file name to be used for the output file generated as a result of this operation.

    2. In the Response tab, enter values for the following parameters:

      Parameter Definition
      Synchronization Type Synchronization types are not applicable to Siebel events.
      Response/Ack Directory Directory where responses or acknowledgments are sent.

    3. In the Advanced tab, enter values for the following parameters:

      Parameter Definition
      Error Directory Directory to which documents with errors are written.
      Poll interval (msec) The interval (in milliseconds) when to check for new input. The default is 3 seconds. Optional.
      Processing Mode Choose Sequential or Threaded.
      • Sequential indicates single processing of requests.

      • Threaded indicates processing of multiple requests simultaneously.

      Thread limit If you selected threaded processing, indicate the maximum number of requests that can be processed simultaneously.

  6. Click OK.

    The summary pane is displayed. A summary provides the channel description, channel status, and available ports. All the information is associated with the channel you created. The channel also 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.

  7. Right-click the channel and select Start.

    The channel you created becomes active.

    The X over the icon in the left pane disappears.

  8. To stop the channel, right-click the channel and select Stop.

Editing a Channel

To edit a channel:

  1. In the left pane, select the channel you want to edit.

  2. Right-click the channel and select Edit.

    The Edit channels pane is displayed.

  3. Make the required changes to the channel configuration and click OK.

Deleting a Channel

To delete a channel:

  1. In the left pane, select the channel you want to delete.

  2. Right-click the channel and select Delete.

    A confirmation dialog box is displayed.

  3. To delete the channel you selected, click OK.

    The channel disappears from the list in the left pane.