Login Register Help
API Documentation
Choose a stylesheet:

Constructordojox.rpc.Service

dojo.require("dojox.rpc.Service");

dojox.rpc.Service must be loaded prior to any plugin services like dojox.rpc.Rest dojox.rpc.JsonRpc in order for them to register themselves, otherwise you get a “No match found” error.

Usage

var foo=new dojox.rpc.Service(smd: Object, options);
parametertypedescription
smdObjectTakes a number of properties as kwArgs for defining the service. It also accepts a string. When passed a string, it is treated as a url from which it should synchronously retrieve an smd file. Otherwise it is a kwArgs object. It accepts serviceUrl, to manually define a url for the rpc service allowing the rpc system to be used without an smd definition. strictArgChecks forces the system to verify that the # of arguments provided in a call matches those defined in the smd. smdString allows a developer to pass a jsonString directly, which will be converted into an object or alternatively smdObject is accepts an smdObject directly.
options  

Jump to PropertiesFunctionsBack to top

Functionconstructor(smd: Object, options)
Take a string as a url to retrieve an smd or an object that is an smd or partial smd to use as a definition for the service
Function_generateService(serviceName, method)
Function_getRequest(method, args)

Jump to FunctionsPropertiesBack to top