Lasso Soft Inc. > Home

[XML_RPCCall]

The [XML_RPCCall] can be used to call an XML-RPC method on a remote server. The tag has three parameters.

-Host specifies the host which should be called. This usually includes a URL and path to the page or CGI that processes XML-RPC. For Lasso servers the host parameter should be of the form http://www.example.com/Lasso/RPC.LassoApp. If the -Host is omitted then the current server is called.

-Method specifies the method which should be called. Method names are usually of the form Test.Echo or System.ListMethods. A different set of methods may be supported by each server.

-Params allows an array of parameters to be passed to the method. -Params can be omitted if no parameters are required.

This tag uses the low-level [XML_RPC] data type to perform the call.

  • Syntax
  • Parameters
[XML_RPCCall: -host='http://127.0.0.1/Lasso/RPC.LassoApp',
  -Method='Method.Name', -Params=(Array: ... )]

[XML_RPCCall: -Method='Method.Name', -Params=(Array: ... )]
Required Parameters
-Method The name of the method on the remote server. Defaults to Test.Echo.
Optional Parameters
-Host The host which should be called. Usually requires a full URL with the path to the XML-RPC processor on the remote host. For Lasso servers, http://www.example.com/Lasso/RPC.Lasso.
-Params An array of parameters to be passed to the remote method. Can be omitted if the remote method does not require parameters.
Examples

To call a remote procedure using XML-RPC:

Use the [XML_RPCCall] tag. The following example calls the Test.Echo method on the local machine.

[XML_RPCCall: -Host='http://127.0.0.1/Lasso/RPC.Lasso', -Method='Test.Echo', -Params='Hello World!']
Result:
Hello World!
Tag Link [XML_RPCCall] Category XML
Type Substitution Data Source Any
Support Preferred Version 6.0
Output Type Array, Any Security Tag
Implementation LDML Sets Lasso 6.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft