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