var Profile=function() {
Profile.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Profile.prototype={
Login:function(Username,Password,succeededCallback, failedCallback, userContext) {
return this._invoke(Profile.get_path(), 'Login',false,{Username:Username,Password:Password},succeededCallback,failedCallback,userContext); },
Logout:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Profile.get_path(), 'Logout',false,{},succeededCallback,failedCallback,userContext); },
SendPassword:function(Email,succeededCallback, failedCallback, userContext) {
return this._invoke(Profile.get_path(), 'SendPassword',false,{Email:Email},succeededCallback,failedCallback,userContext); },
CreateUser:function(Username,Password,EmailAddress,PhoneNumber,Newsletter,succeededCallback, failedCallback, userContext) {
return this._invoke(Profile.get_path(), 'CreateUser',false,{Username:Username,Password:Password,EmailAddress:EmailAddress,PhoneNumber:PhoneNumber,Newsletter:Newsletter},succeededCallback,failedCallback,userContext); },
UpdateUser:function(Username,Password,EmailAddress,PhoneNumber,Newsletter,succeededCallback, failedCallback, userContext) {
return this._invoke(Profile.get_path(), 'UpdateUser',false,{Username:Username,Password:Password,EmailAddress:EmailAddress,PhoneNumber:PhoneNumber,Newsletter:Newsletter},succeededCallback,failedCallback,userContext); }}
Profile.registerClass('Profile',Sys.Net.WebServiceProxy);
Profile._staticInstance = new Profile();
Profile.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; Profile._staticInstance._path = value; }
Profile.get_path = function() { return Profile._staticInstance._path; }
Profile.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); }
Profile._staticInstance._timeout = value; }
Profile.get_timeout = function() { 
return Profile._staticInstance._timeout; }
Profile.set_defaultUserContext = function(value) { 
Profile._staticInstance._userContext = value; }
Profile.get_defaultUserContext = function() { 
return Profile._staticInstance._userContext; }
Profile.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; Profile._staticInstance._succeeded = value; }
Profile.get_defaultSucceededCallback = function() { 
return Profile._staticInstance._succeeded; }
Profile.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; Profile._staticInstance._failed = value; }
Profile.get_defaultFailedCallback = function() { 
return Profile._staticInstance._failed; }
Profile.set_path("/Webservices/Profile.asmx");
Profile.Login= function(Username,Password,onSuccess,onFailed,userContext) {Profile._staticInstance.Login(Username,Password,onSuccess,onFailed,userContext); }
Profile.Logout= function(onSuccess,onFailed,userContext) {Profile._staticInstance.Logout(onSuccess,onFailed,userContext); }
Profile.SendPassword= function(Email,onSuccess,onFailed,userContext) {Profile._staticInstance.SendPassword(Email,onSuccess,onFailed,userContext); }
Profile.CreateUser= function(Username,Password,EmailAddress,PhoneNumber,Newsletter,onSuccess,onFailed,userContext) {Profile._staticInstance.CreateUser(Username,Password,EmailAddress,PhoneNumber,Newsletter,onSuccess,onFailed,userContext); }
Profile.UpdateUser= function(Username,Password,EmailAddress,PhoneNumber,Newsletter,onSuccess,onFailed,userContext) {Profile._staticInstance.UpdateUser(Username,Password,EmailAddress,PhoneNumber,Newsletter,onSuccess,onFailed,userContext); }
