Click Next. The RowSets page is displayed, as shown in Optionally, fine tune the weakly typed XSD by manually editing the schema

9-116 Oracle Fusion Middleware Users Guide for Technology Adapters Figure 9–56 Specifying a Stored Procedure in the Adapter Configuration Wizard As Figure 9–56 shows, the original procedure name is fully qualified, PKG.PLSQL. The type of parameter, R, is the name of the RECORD. The type of T is the name of the TABLE. The type of B is Boolean. The name of the wrapper package that is generated is derived from the service name, bpel_ServiceName for example, bpel_ UseJPub. This is the name of the generated package that contains the wrapper procedure. The check box can be used to force the Adapter Configuration Wizard to overwrite an existing package when the schema objects are created. Clicking Next twice reveals the Finish page of the Adapter Configuration Wizard, as shown in Figure 9–57 . Oracle JCA Adapter for Database 9-117 Figure 9–57 Defining a Database Adapter Service: Finish Page The contents of this page describe what the Adapter Configuration Wizard has detected and what actions are performed when the Finish button is clicked. The following summarizes the contents of this page:

1. The name of the generated WSDL is UseJPub.wsdl.

2. The name of the JCA file is UseJPub_db.jca.

3. Two SQL scripts are created and added to the BPEL process project:

a. BPEL_USEJPUB.sql – Creates the schema objects.

b. BPEL_USEJPUB_drop.sql – Drops the schema objects.

4. The name of the generated XSD is SCOTT_USEJPUB_PKG-24PLSQL.xsd.

When you click Finish, Oracle JPublisher is invoked to generate the SQL files and load the schema objects into the database. The process of generating wrappers may take quite some time to complete. Processing times for wrappers that are generated in the same package usually require less time after an initial wrapper has been generated for another procedure within the same package. The following user-defined types are generated to replace the PLSQL types from the original procedure: SQL CREATE TYPE PKG_REC AS OBJECT X NUMBER, Y VARCHAR2 10; SQL CREATE TYPE PKG_TBL AS TABLE OF NUMBER; The naming convention for these types is OriginalPackageName_ OriginalTypeName . Boolean is replaced by INTEGER in the wrapper procedure. Note: You must execute BPEL_XXXX_drop.sql when re-creating an Oracle Database Adapter. This is likely due to the JPublisher functionality, which uses a cache when generating wrappers.