var ServicioBolsa=function() {
ServicioBolsa.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ServicioBolsa.prototype={
BuscarSimbolo:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(ServicioBolsa.get_path(), 'BuscarSimbolo',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
ObtenerCotizacion:function(simbolo,succeededCallback, failedCallback, userContext) {
return this._invoke(ServicioBolsa.get_path(), 'ObtenerCotizacion',false,{simbolo:simbolo},succeededCallback,failedCallback,userContext); }}
ServicioBolsa.registerClass('ServicioBolsa',Sys.Net.WebServiceProxy);
ServicioBolsa._staticInstance = new ServicioBolsa();
ServicioBolsa.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; ServicioBolsa._staticInstance._path = value; }
ServicioBolsa.get_path = function() { return ServicioBolsa._staticInstance._path; }
ServicioBolsa.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); }
ServicioBolsa._staticInstance._timeout = value; }
ServicioBolsa.get_timeout = function() { 
return ServicioBolsa._staticInstance._timeout; }
ServicioBolsa.set_defaultUserContext = function(value) { 
ServicioBolsa._staticInstance._userContext = value; }
ServicioBolsa.get_defaultUserContext = function() { 
return ServicioBolsa._staticInstance._userContext; }
ServicioBolsa.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; ServicioBolsa._staticInstance._succeeded = value; }
ServicioBolsa.get_defaultSucceededCallback = function() { 
return ServicioBolsa._staticInstance._succeeded; }
ServicioBolsa.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; ServicioBolsa._staticInstance._failed = value; }
ServicioBolsa.get_defaultFailedCallback = function() { 
return ServicioBolsa._staticInstance._failed; }
ServicioBolsa.set_path("/mibolsa/ServicioBolsa.asmx");
ServicioBolsa.BuscarSimbolo= function(prefixText,count,onSuccess,onFailed,userContext) {ServicioBolsa._staticInstance.BuscarSimbolo(prefixText,count,onSuccess,onFailed,userContext); }
ServicioBolsa.ObtenerCotizacion= function(simbolo,onSuccess,onFailed,userContext) {ServicioBolsa._staticInstance.ObtenerCotizacion(simbolo,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Cotizacion) === 'undefined') {
var Cotizacion=gtc("Cotizacion");
Cotizacion.registerClass('Cotizacion');
}
