Expression and function requests

Use the Expression and Function services to send requests to the server, and then examine the resulting XML.

An Expression service example:

http://servername:port/service_name/api/v8/expression/eval?cmd=1:10&async=true

A Function service example:

http://servername:port/service_name/api/v8/function/rnorm?n=5&mean=30
Note: You can use the Function service for simple requests, such as this example. The Function service can handle only strings and numbers as arguments. If you need to pass a logical or an object, use the Expression service.

The function must be in a library, which is loaded in all engines available on the server. If you need to run a function in a library not loaded in the server .init script, talk to your system administrator.

For information about the resulting XML, see The SplusObject.