Skip to content

restFunctionServices

matlab_compat · scripts/matlab_compat/restFunctionServices.m

: serviceDict = restFunctionServices ()
: client = restFunctionServices (url)

With no arguments, return a dictionary of REST function services in the current session (empty until local service hosting is available).

With a URL, return a RestFunctionServicesClient that calls a MATLAB Production Server-compatible JSON endpoint:

client = restFunctionServices ("http://host:9910/myarchive");
y = client.feval ("myfunc", 3);

The client POSTs { "nargout": N, "rhs": […] } with Content-Type: application/json and reads lhs from the JSON reply.