Executing an RPC transaction
Before you are ready to execute an RPC transaction the following actions must be taken :
• Connect the self attribute of the RPC Connection Spec to the connectionSpec attribute of the RPC Client.
• Add a label or text part to the free form surface and open its setting view. Set the part's data type to integer and then close the settings view. Set the value of the part to the integer value representing the function number of the server procedure you wish to invoke. Connect the part to the functionNumber attribute of the RPC client.
• Define an input and output record that will be used for the RPC transaction. The records must exactly match the definition of the records that the RPC Server will use for the procedure invoked. Connect the input and output records to the inputRecord and outputRecord attributes of the RPC Client respectively.
Now you can make a connection to the execute action of the RPC Client. The action will cause a transaction to be sent to the server and the client will wait for the response. The output from the transaction is placed in the output record you provided.
The function number is associated with the RPC Client so that multiply clients can use the same connection spec to invoke the different functions that an RPC Server provides. The input and output records must match the server's definition of those records so that the server will know how to interpret the data and also that XDR can decode it correctly.
Last modified date: 01/29/2015