Support for Oracle User-Defined Types
The Microsoft BizTalk Adapter for Oracle E-Business Suite supports performing operations on artifacts in Oracle E-Business Suite and the underlying database that contain Oracle User-Defined Types (UDTs). The UDTs can be present in the following artifacts:
Interface tables and interface views containing UDT columns.
Database tables and views containing UDT columns.
Packages, stored procedures, and functions containing UDT parameters.
What is an Oracle UDT?
Oracle UDTs help in representing complex entities as a “single” object that can be shared among the applications. For example, it is possible to model real-world entities such as "Customers" or "Sales Orders" as objects in the Oracle database. Oracle UDTs are defined in the Oracle database, and they are of the following two types:
Object types. For example, Oracle Object.
Collection types. For example, nested table types or VARRAY.
The name of the Oracle UDT is case sensitive, and must be specified in the following way: [SCHEMA_NAME].[UDT_NAME].
How Does the Adapter Support Oracle UDT?
ODP.NET supports UDTs by representing Oracle UDTs defined in the Oracle database as .NET types (custom types). Custom types define the mapping between the Oracle UDT attributes or elements to the .NET members. Custom types can be .NET classes or structures, and can represent either Oracle Objects or Oracle Collections. Owing to the fact that the Oracle E-Business adapter uses ODP.NET to connect to the Oracle database, it inherits support for Oracle UDTs.
The Oracle E-Business adapter uses the ODP.NET to specify a custom type mapping to map a .NET custom type to an Oracle UDT in the database. To specify a custom type mapping, the Oracle E-Business adapter uses a custom type factory. Therefore, in order to use an Oracle UDT, an assembly (.dll file) is required that defines the custom type factory. The Oracle E-Business adapter enables you to generate an assembly for the custom type factory while generating the metadata for an artifact/operation that contains an Oracle UDT.
|The adapter generates the assembly for the Oracle UDTs based on the classes used by the ODP.NET to support Oracle UDTs. For detailed information about how Oracle UDTs are supported in ODP.NET, see http://go.microsoft.com/fwlink/?LinkId=140697.|
To generate the assembly file for using the Oracle UDTs at design time and then use it later at the run time, the Oracle E-Business adapter exposes the following binding properties:
GeneratedUserTypesAssemblyFilePath (design time)
GeneratedUserTypesAssemblyKeyFilePath (design time)
UserAssembliesLoadPath (run time)
For information about these binding properties, see Working with BizTalk Adapter for Oracle E-Business Suite Binding Properties.
Performing Operations On Artifacts Containing Oracle UDTs
To perform operations on artifacts containing UDTs using the Oracle E-Business adapter, you must do the following during design time and run time.
You must perform these steps while generation schema for the operation in Visual Studio.
Connect to Oracle E-Business Suite using the Consume Adapter Service Add-in, the Add Adapter Metadata Wizard, or the Add Adapter Service Reference Plug-in. For information about doing so, see Connecting to the Oracle E-Business Suite in Visual Studio.
While connecting, in the Binding Properties tab of the Configure Adapter dialog box, specify appropriate values for the GeneratedUserTypesAssemblyFilePath and GeneratedUserTypesAssemblyKeyFilePath binding properties. For information about these binding properties, see Working with BizTalk Adapter for Oracle E-Business Suite Binding Properties.
When you are connected to Oracle E-Business Suite in Visual Studio, browse to the required artifact that contains an Oracle UDT. For information about browsing artifacts, see Browsing, Searching, and Retrieving Metadata for Oracle E-Business Operations.
Select the required artifact, and then click OK. The Oracle E-Business adapter generates the metadata for the selected operation along with the assembly (.dll file) for the Oracle UDT in the selected artifact. The assembly is created at the location that you specified in the GeneratedUserTypesAssemblyFilePath binding property.
Proceed with the rest of the steps for building and deploying your project.
You must perform these steps in the adapter clients to perform operations on the Oracle UDTs.
In BizTalk Server
Manually add the Oracle UDT assembly created in step 4 in “Design Time” to the Global Assembly Cache (GAC) on your computer. Alternatively, you can manually copy the Oracle UDT assembly under the BizTalk Server installation location. For BizTalk Server 2013 R2, typically this is <installation drive>:\Program Files\Microsoft BizTalk Server 2013 R2.
While configuring the BizTalk Server WCF-Custom or WCF-OracleEBS port, in the Binding tab, specify the location of the Oracle UDT assembly for the UserAssembliesLoadPath binding property. For information about this binding property, see Working with BizTalk Adapter for Oracle E-Business Suite Binding Properties.
In Visual Studio
Manually add the Oracle UDT assembly created in step 4 in “Design Time” to the Global Assembly Cache (GAC) on your computer. Alternatively, you can manually copy the Oracle UDT assembly to the same location as the project executable file, which typically is under the project’s \bin\Debug folder.
Specify the location of the Oracle UDT assembly for the UserAssembliesLoadPath binding property. For information about this binding property, see Working with BizTalk Adapter for Oracle E-Business Suite Binding Properties.
Other ResourcesWhat Operations Can Be Performed Using the Adapter?
© 2014 Microsoft Corporation. All rights reserved.