Dynamic Method Binding (.NET)

From RemObjects Wiki
Jump to: navigation, search

This is a Concept topic for Data Abstract for .NET

New page awaiting review

Please do not rely on the content. After review, the page will be indexed and may have its name changed.
If you have suggestions for this page, please send them to us: email.


Overview

Dynamic Method Binding technology allows you to connect your Data Abstract client to to any custom defined remote service methods by providing dynamic mappings between client calls and the server methods.

More details about Dynamic Method Binding technology you can find here.

Example

Suppose that, in order to read data from your service, you want to use a custom defined method called MyCustomGetDataMethod which takes two input parameters (DataTableNames of type string, and ParameterTwo of type Int32) and returns a Binary stream.

The RODL file included in your server would look somewhat similar to this:


DMB RODL File.PNG


In order for your client RemoteDataAdapter to invoke this method (instead of the default GetData), you will need to make use of Dynamic Method Binding and modify the value of its DataRequestCall's properties to point to this method.

The first thing you would do is query the remote service for all the available methods by opening the drop down associated with the DataRequestCall.MethodName:


DMB RDAProperties 1.PNG


After selecting the appropriate method, the IDE designers will update the parameters contained in the DataRequestCall.Parameters collection and inform you of that through a message similar to the following:


DMB Message.PNG


Now you can set the DataRequestCall.OutgoingTableNamesParameter and IncomingDataParameter to the appropriate values like show in the following screenshot:


DMB RDAProperties 2.PNG


Once these steps are complete, your RemoteDataAdapter is set up. Any subsequent calls to the Fill method will invoke your custom MyCustomGetDataMethod method on the server.


See Also


Product: RemObjects Data Abstract
Available Editions: Data Abstract for .NET, Xcode, Delphi, Java and JavaScript

GlossaryArticlesFeaturesLibrarySamples

Personal tools
Namespaces

Variants
Actions
Navigation
products
platforms
special
Toolbox