BlueCielo Meridian Enterprise 2018 VBScript API Reference
CallRemote method
Executes a remote procedure call.
Syntax
CallRemote(URL As String, Username As String, _ Password As String, RemoteVault As String, _ Script As String, [Args], [Flags As Long = 2])
Name | Description |
---|---|
URL |
Location of the server with which to connect. |
Username |
User account to use to connect to the server. |
Password |
Password of the user account. |
RemoteVault |
Name of the remote vault with which to connect. |
Script |
Name of the procedure to execute on the remote server. |
Args |
Optional arguments for the procedure to execute. |
Flags |
Optional flags from the AS_CALLREMOTE_FLAGSS enumeration. |
Example
The following examples show how to use this method.
Example function defined in the called vault:
Function RemoteTest (First, Second, Third) RemoteTest = "RemoteTest returns: " & First & ", " & Second & ", " & Third End Function
Example procedure defined in the calling vault:
Sub Test_Execute(Batch)
vArg = Array ("One ", "Two", "Three")
vRes = Vault.CallRemote ("http://MyServer/Meridian", "MyUserName", _
"MyPassword", "MyVaultName", "RemoteTest", VArg, AS_CRF_MULTIARGS)
WinMsgBox vRes
End Sub