Export (0) Print
Expand All

Developing Applications by Using the WCF Channel Model

You can use the Windows Communication Foundation (WCF) channel model to consume the Microsoft BizTalk Adapter for Oracle Database by sending XML messages directly over a channel instance created with the Oracle DB Binding.

One advantage of using the WCF channel model over using the strongly-typed classes and methods that the WCF service model exposes is that the channel model provides more fine-grained control over the operations that you perform on the Oracle database. Why? In the WCF channel model you directly control the contents of the messages that you send over the channel.

In certain scenarios, this extra level of control can be beneficial. For example, when you use the WCF channel model to perform an Update operation on a table, you can selectively update columns in the target rows by omitting columns from the update template that you pass in the message. The update method exposed by a WCF client uses a strongly-typed record parameter for the template that includes every column in the table schema. If a column has “nillable=false” in the WSDL, it must be updated using the WCF service model.

Another key advantage that the WCF channel model provides over the WCF service model is more comprehensive support for end-to-end streaming of Oracle large object (LOB) data types. By using the WCF channel model you can perform end-to-end streaming:

  • To update an LOB column in a table or view using the UpdateLOB operation.

  • On OUT and IN OUT parameters containing LOB data that are returned by procedures and functions.

  • On LOB data that is contained in the result of a SQLEXECUTE operation.

  • On LOB data columns that are returned in the POLLINGSTMT operation.

  • On LOB data columns that are returned by a Select operation on a table or view.

This is because in the WCF channel model you directly control how you provide the message body on outgoing messages and how you process the message body on incoming messages.

In contrast, the WCF service model only provides:

  • End-to-end streaming for LOB data on one operation, the ReadLOB operation.

  • No capability to update LOB data on the Oracle database in a streamed fashion.

The sections in this topic explain how to perform operations on the Oracle Database adapter by using the WCF channel model.

Show:
© 2014 Microsoft