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

