Type.registerNamespace('MyService');
MyService.ServiceVariables=function() {
MyService.ServiceVariables.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
MyService.ServiceVariables.prototype={
HelloWorld:function(succeededCallback, failedCallback, userContext) {
return this._invoke(MyService.ServiceVariables.get_path(), 'HelloWorld',false,{},succeededCallback,failedCallback,userContext); },
HelloWorld2:function(succeededCallback, failedCallback, userContext) {
return this._invoke(MyService.ServiceVariables.get_path(), 'HelloWorld2',false,{},succeededCallback,failedCallback,userContext); }}
MyService.ServiceVariables.registerClass('MyService.ServiceVariables',Sys.Net.WebServiceProxy);
MyService.ServiceVariables._staticInstance = new MyService.ServiceVariables();
MyService.ServiceVariables.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; MyService.ServiceVariables._staticInstance._path = value; }
MyService.ServiceVariables.get_path = function() { return MyService.ServiceVariables._staticInstance._path; }
MyService.ServiceVariables.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); }
MyService.ServiceVariables._staticInstance._timeout = value; }
MyService.ServiceVariables.get_timeout = function() { 
return MyService.ServiceVariables._staticInstance._timeout; }
MyService.ServiceVariables.set_defaultUserContext = function(value) { 
MyService.ServiceVariables._staticInstance._userContext = value; }
MyService.ServiceVariables.get_defaultUserContext = function() { 
return MyService.ServiceVariables._staticInstance._userContext; }
MyService.ServiceVariables.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; MyService.ServiceVariables._staticInstance._succeeded = value; }
MyService.ServiceVariables.get_defaultSucceededCallback = function() { 
return MyService.ServiceVariables._staticInstance._succeeded; }
MyService.ServiceVariables.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; MyService.ServiceVariables._staticInstance._failed = value; }
MyService.ServiceVariables.get_defaultFailedCallback = function() { 
return MyService.ServiceVariables._staticInstance._failed; }
MyService.ServiceVariables.set_path("/ServiceVariables.asmx");
MyService.ServiceVariables.HelloWorld= function(onSuccess,onFailed,userContext) {MyService.ServiceVariables._staticInstance.HelloWorld(onSuccess,onFailed,userContext); }
MyService.ServiceVariables.HelloWorld2= function(onSuccess,onFailed,userContext) {MyService.ServiceVariables._staticInstance.HelloWorld2(onSuccess,onFailed,userContext); }
