InvokeTransactional method

The InvokeTransactional method is the same as the Invoke method, except that this method also returns values from the remote method that is being invoked.

The return value type of this method is Mongoose.IDO.Protocol.InvokeResponseData.

You can use this method only if the replication interval type is Transactional. If you attempt to use a Delayed Replication interval type, the system throws an error.

Note: This method follows the same process to invoke the remote method as an Invoke method that uses the Transactional replication interval type.

Parameters required by this method

To be used correctly, these are the parameters that this method requires:

Parameter Data Type Description
Target Site System.String This is the name of the site where the IDO method is to be called.
IDO Name System.String This is the name of the IDO on the target site where the remote IDO method resides.
Method Name System.String This is the name of the IDO method that is to be called at the target site.
Parameters Correspond to the data types of the arguments to be passed, as expected by the remote method This is a list of a variable number of arguments to be passed to the IDO method being called.

This example invokes a standard method at a remote site and returns response data that contains the value from the standard method:

var targetSite = "CA";
var idoName = "Products";
var idoMethodName = "GetProductStatus";
var arg1 = 100001;

//Call the standard method into the specified target site and
//return an InvokeResponseData which contains the return value of the standard method.
var returnValue = RemoteMethod.InvokeTransactional( targetSite, idoName, idoMethodName, arg1 );