var wsAgent=function() {
wsAgent.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
wsAgent.prototype={
GetAgents:function(OfficeID,start,max,succeededCallback, failedCallback, userContext) {
return this._invoke(wsAgent.get_path(), 'GetAgents',false,{OfficeID:OfficeID,start:start,max:max},succeededCallback,failedCallback,userContext); },
GetAgentByMls:function(agentMls,succeededCallback, failedCallback, userContext) {
return this._invoke(wsAgent.get_path(), 'GetAgentByMls',false,{agentMls:agentMls},succeededCallback,failedCallback,userContext); },
GetOffices:function(succeededCallback, failedCallback, userContext) {
return this._invoke(wsAgent.get_path(), 'GetOffices',false,{},succeededCallback,failedCallback,userContext); },
AddAgent_ForUser:function(AgentID,succeededCallback, failedCallback, userContext) {
return this._invoke(wsAgent.get_path(), 'AddAgent_ForUser',false,{AgentID:AgentID},succeededCallback,failedCallback,userContext); }}
wsAgent.registerClass('wsAgent',Sys.Net.WebServiceProxy);
wsAgent._staticInstance = new wsAgent();
wsAgent.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; wsAgent._staticInstance._path = value; }
wsAgent.get_path = function() { return wsAgent._staticInstance._path; }
wsAgent.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); }
wsAgent._staticInstance._timeout = value; }
wsAgent.get_timeout = function() { 
return wsAgent._staticInstance._timeout; }
wsAgent.set_defaultUserContext = function(value) { 
wsAgent._staticInstance._userContext = value; }
wsAgent.get_defaultUserContext = function() { 
return wsAgent._staticInstance._userContext; }
wsAgent.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; wsAgent._staticInstance._succeeded = value; }
wsAgent.get_defaultSucceededCallback = function() { 
return wsAgent._staticInstance._succeeded; }
wsAgent.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; wsAgent._staticInstance._failed = value; }
wsAgent.get_defaultFailedCallback = function() { 
return wsAgent._staticInstance._failed; }
wsAgent.set_path("/WebServices/wsAgent.asmx");
wsAgent.GetAgents= function(OfficeID,start,max,onSuccess,onFailed,userContext) {wsAgent._staticInstance.GetAgents(OfficeID,start,max,onSuccess,onFailed,userContext); }
wsAgent.GetAgentByMls= function(agentMls,onSuccess,onFailed,userContext) {wsAgent._staticInstance.GetAgentByMls(agentMls,onSuccess,onFailed,userContext); }
wsAgent.GetOffices= function(onSuccess,onFailed,userContext) {wsAgent._staticInstance.GetOffices(onSuccess,onFailed,userContext); }
wsAgent.AddAgent_ForUser= function(AgentID,onSuccess,onFailed,userContext) {wsAgent._staticInstance.AddAgent_ForUser(AgentID,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('WilliamsTrew.BO');
if (typeof(WilliamsTrew.BO.AgentInfo) === 'undefined') {
WilliamsTrew.BO.AgentInfo=gtc("WilliamsTrew.BO.AgentInfo");
WilliamsTrew.BO.AgentInfo.registerClass('WilliamsTrew.BO.AgentInfo');
}
if (typeof(WilliamsTrew.BO.OfficeInfo) === 'undefined') {
WilliamsTrew.BO.OfficeInfo=gtc("WilliamsTrew.BO.OfficeInfo");
WilliamsTrew.BO.OfficeInfo.registerClass('WilliamsTrew.BO.OfficeInfo');
}

