Constructordojo.rpc.RpcService

dojo.require("dojo.rpc.RpcService");
defined in dojo/rpc/RpcService.js

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

Usage

function (/*Object*/ args) (view source)
parametertypedescription
argsObjectTakes 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.

Jump to PropertiesFunctionsBack to top

FunctionerrorCallback(deferredRequestHandler: dojo.Deferred)
create callback that calls the Deferres errback method
FunctiongenerateMethod(method: String, parameters: Array, url: String)
generate the local bind methods for the remote object
parse the results coming back from an rpc request. this base implementation, just returns the full object subclasses should parse and only return the actual results
FunctionprocessSmd(object)
callback method for reciept of a smd object. Parse the smd and generate functions based on the description
FunctionresultCallback(deferredRequestHandler: dojo.Deferred)
create callback that calls the Deferred's callback method

Jump to FunctionsPropertiesBack to top