var Ajax=function() {
Ajax.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Ajax.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Ajax._staticInstance.get_path();},
HelloWorld:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'HelloWorld',false,{},succeededCallback,failedCallback,userContext); },
Login:function(userName,password,succeededCallback, failedCallback, userContext) {
/// <param name="userName" type="String">System.String</param>
/// <param name="password" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'Login',false,{userName:userName,password:password},succeededCallback,failedCallback,userContext); },
Logout:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'Logout',false,{},succeededCallback,failedCallback,userContext); }}
Ajax.registerClass('Ajax',Sys.Net.WebServiceProxy);
Ajax._staticInstance = new Ajax();
Ajax.set_path = function(value) {
Ajax._staticInstance.set_path(value); }
Ajax.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Ajax._staticInstance.get_path();}
Ajax.set_timeout = function(value) {
Ajax._staticInstance.set_timeout(value); }
Ajax.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Ajax._staticInstance.get_timeout(); }
Ajax.set_defaultUserContext = function(value) { 
Ajax._staticInstance.set_defaultUserContext(value); }
Ajax.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Ajax._staticInstance.get_defaultUserContext(); }
Ajax.set_defaultSucceededCallback = function(value) { 
 Ajax._staticInstance.set_defaultSucceededCallback(value); }
Ajax.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Ajax._staticInstance.get_defaultSucceededCallback(); }
Ajax.set_defaultFailedCallback = function(value) { 
Ajax._staticInstance.set_defaultFailedCallback(value); }
Ajax.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Ajax._staticInstance.get_defaultFailedCallback(); }
Ajax.set_path("/App_WebService/Ajax.asmx");
Ajax.HelloWorld= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Ajax._staticInstance.HelloWorld(onSuccess,onFailed,userContext); }
Ajax.Login= function(userName,password,onSuccess,onFailed,userContext) {
/// <param name="userName" type="String">System.String</param>
/// <param name="password" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Ajax._staticInstance.Login(userName,password,onSuccess,onFailed,userContext); }
Ajax.Logout= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Ajax._staticInstance.Logout(onSuccess,onFailed,userContext); }
