Login Register

dojo.rpc.JsonService

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":[

RPC

I can hardly say that I have a problem since everything is running OK but still in FireBug I am getting odd results.

dojo.rpc.JsonService addErrback()

Hi:

I have a JSON-RPC service created in the following way:


var serviceDefinition = {serviceType:'JSON-RPC'};
serviceDefinition['serviceURL']= 'http://localhost:8080/JSON-RPC';
var jsonService = new dojo.rpc.JsonService(serviceDefinition);

// function call if JSON request completes with success
var success = function(result) {
.....
}

// function call if JSON request completes with an error
var error = function(error) {
.....
}

var deferred = jsonService.callRemote('service.getSomething', params);
deferred.addErrback(error);

QueryReadStore using JsonService

I have been working on extending QueryReadStore to use a dojo.rpc.JsonService for data retrieval and wanted to provide this information for discussion.

Syndicate content