JsonRpcRequest Method
This method can be used to directly pass a JSON-RPC request to the server. It allows calling remote procedures through a JSON-RPC 2.0 request string.
This method internally invokes the JsonHandler.JsonRpcRequest() method.
This method has the following syntax:
StringObject = RemoteServer.JsonRpcRequest(request = StringObject)
request
Specifies the StringObject containing the JSON-RPC 2.0 request.
This method returns a StringObject containing the response (NULL for a “Notification” request).
The
AssignJsonRpcResponse2Vars Function procedure can be used to parse the returned StringObject and assign the result/error information to target variables.
If the JsonRpcRequest method is successful, it returns ER_OK; method is successful, it returns ER_OK; a failure returns ER_FAIL.
Note: In the case of a failure, you can obtain more information about the cause of the failure from the Errorcode and Errortext attributes.
Descriptions of system constant values and their numeric equivalents are listed in
Error Codes and
RemoteServer Settings.
Last modified date: 06/25/2024