Picture 1. Scenario diagram.
The following steps described how to generate the schema´s necessary for executing a parameterized SQL statement against Oracle database. Create a BizTalk project and sign it with a strong name and specify a name for the application.
The SQLEXECUTE operation is surfaced under the root node (/) in the Select a category pane in the Consume Adapter Service BizTalk Project Add-in (Meta data Wizard). To be able to use this operation through orchestration or messaging in BizTalk you need to create a schema. The following steps will lead to creation of this specific schema:
Picture 2. Meta data Wizard.
Picture 3. Schema's and binding.
Picture 4. Specify credentials in runtime.
BTS.MessageType == http://Microsoft.LobServices.OracleDB/2007/03/SQLEXECUTE#SQLEXECUTE
BTS.MessageType == http://Microsoft.LobServices.OracleDB/2007/03/SQLEXECUTE#SQLEXECUTEResponse
Picture 5. Request message containing the SQL query statement.
Picture 6. Response message containing result of the query statement.
This article demonstrate one of the operation that can be performed on Oracle database leveraging the BizTalk Adapter Pack that is shipped with BizTalk Server 2013. The solution in this article is completely messaging based, however you can do an implementation of this functionality through using an orchestration or simply a WCF Service.