Login Register

dojox.rpc.Service

Question re. dojox.rpc._sync

I have a question regarding the dojox.rpc._sync variable, as set by (for example) JsonRestStore's "getValue(...)" method.

Once this value is set to true, are all subsequent calls synchronous? I've taken a quick look at the code and it seems like the parameter is mixed into all subsequent calls because of dojox.rpc.Service._getRequest(...).

Or am I missing something? (Likely.)

Thanks.

What dojo mechanism do I use to call a web service?

I have an existing web service that I'm trying to call using dojo.rpc services. I've tried dojox.rpc.Service, dojo.rpc.RpcService and dojo.rpc.JsonService. I get the farthest using dojo.rpc.JsonService.

Here's my code using dojo.rpc.JsonService.

// BEGIN CODE SNIPPET
// SeamlessDownload.smd
{
"serviceType": "JSON-RPC",
"serviceURL": "http://imsdemo.cr.usgs.gov/distDownloadRequest/services/DistDownloadRequestService",
"methods":[
{
"name": "oneStepDownload",
"parameters":[

Syndicate content