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