Type.registerNamespace('Contoso.services');
Contoso.services.ContosoService=function() {
Contoso.services.ContosoService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Contoso.services.ContosoService.prototype={
SaveFavorite:function(type,sID,succeededCallback, failedCallback, userContext) {
return this._invoke(Contoso.services.ContosoService.get_path(), 'SaveFavorite',false,{type:type,sID:sID},succeededCallback,failedCallback,userContext); }}
Contoso.services.ContosoService.registerClass('Contoso.services.ContosoService',Sys.Net.WebServiceProxy);
Contoso.services.ContosoService._staticInstance = new Contoso.services.ContosoService();
Contoso.services.ContosoService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; Contoso.services.ContosoService._staticInstance._path = value; }
Contoso.services.ContosoService.get_path = function() { return Contoso.services.ContosoService._staticInstance._path; }
Contoso.services.ContosoService.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
Contoso.services.ContosoService._staticInstance._timeout = value; }
Contoso.services.ContosoService.get_timeout = function() { 
return Contoso.services.ContosoService._staticInstance._timeout; }
Contoso.services.ContosoService.set_defaultUserContext = function(value) { 
Contoso.services.ContosoService._staticInstance._userContext = value; }
Contoso.services.ContosoService.get_defaultUserContext = function() { 
return Contoso.services.ContosoService._staticInstance._userContext; }
Contoso.services.ContosoService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; Contoso.services.ContosoService._staticInstance._succeeded = value; }
Contoso.services.ContosoService.get_defaultSucceededCallback = function() { 
return Contoso.services.ContosoService._staticInstance._succeeded; }
Contoso.services.ContosoService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; Contoso.services.ContosoService._staticInstance._failed = value; }
Contoso.services.ContosoService.get_defaultFailedCallback = function() { 
return Contoso.services.ContosoService._staticInstance._failed; }
Contoso.services.ContosoService.set_path("/services/ContosoService.asmx");
Contoso.services.ContosoService.SaveFavorite= function(type,sID,onSuccess,onFailed,userContext) {Contoso.services.ContosoService._staticInstance.SaveFavorite(type,sID,onSuccess,onFailed,userContext); }
