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

