lib/conbo.js
function(command, data, method, resultClass)
	{
		var scope = this;

		data = conbo.clone(data || {});
		command = this.parseUrl(command, data);
		data = this.encodeFunction(data, method);
		
		return new Promise(function(resolve, reject)
		{
			conbo.httpRequest
			({
				data: data,
				type: method || 'GET',
				headers: scope.headers,
				url: (scope.rootUrl+command).replace(/\/$/, ''),
				contentType: scope.contentType || conbo.CONTENT_TYPE_JSON,
				dataType: scope.dataType,
				dataFilter: scope.decodeFunction,
				resultClass: resultClass || scope.resultClass, 
				makeObjectsBindable: scope.makeObjectsBindable
			})
			.then(function(event)
			{
				scope.dispatchEvent(event);
				resolve(event);
			})
			.catch(function(event)
			{
				scope.dispatchEvent(event);
				reject(event);
			});
		});
	}
function(command, data, method, resultClass)
	{
		var scope = this;

		data = conbo.clone(data || {});
		command = this.parseUrl(command, data);
		data = this.encodeFunction(data, method);
		
		return new Promise(function(resolve, reject)
		{
			conbo.httpRequest
			({
				data: data,
				type: method || 'GET',
				headers: scope.headers,
				url: (scope.rootUrl+command).replace(/\/$/, ''),
				contentType: scope.contentType || conbo.CONTENT_TYPE_JSON,
				dataType: scope.dataType,
				dataFilter: scope.decodeFunction,
				resultClass: resultClass || scope.resultClass, 
				makeObjectsBindable: scope.makeObjectsBindable
			})
			.then(function(event)
			{
				scope.dispatchEvent(event);
				resolve(event);
			})
			.catch(function(event)
			{
				scope.dispatchEvent(event);
				reject(event);
			});
		});
	}
function ( command , data , method , resultClass ) { var scope = this ; data = conbo . clone ( data || { } ) ; command = this . parseUrl ( command , data ) ; data = this . encodeFunction ( data , method ) ; return new Promise ( function ( resolve , reject ) { conbo . httpRequest ( { data : data , type : method || 'GET' , headers : scope . headers , url : ( scope . rootUrl + command ) . replace ( / \/$ / , '' ) , contentType : scope . contentType || conbo . CONTENT_TYPE_JSON , dataType : scope . dataType , dataFilter : scope . decodeFunction , resultClass : resultClass || scope . resultClass , makeObjectsBindable : scope . makeObjectsBindable } ) . then ( function ( event ) { scope . dispatchEvent ( event ) ; resolve ( event ) ; } ) . catch ( function ( event ) { scope . dispatchEvent ( event ) ; reject ( event ) ; } ) ; } ) ; }
Call a method of the web service using the specified verb

@param	{string}	command - The name of the command
@param	{Object}	[data] - Object containing the data to send to the web service
@param	{string}	[method=GET] - GET, POST, etc (default: GET)
@param	{Class}		[resultClass] - Optional
@returns	{Promise}
Call a method of the web service using the specified verb