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

