var ContentProvider=function() {
ContentProvider.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ContentProvider.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return ContentProvider._staticInstance.get_path();},
GetCategories:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCategories',false,{},succeededCallback,failedCallback,userContext); },
GetSubcategories:function(category,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetSubcategories',false,{category:category},succeededCallback,failedCallback,userContext); },
GetBooksBySubcategory:function(subcategory,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetBooksBySubcategory',false,{subcategory:subcategory},succeededCallback,failedCallback,userContext); },
GetPeriodicalYears:function(periodical,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPeriodicalYears',false,{periodical:periodical},succeededCallback,failedCallback,userContext); },
GetIssuesByPeriadicalAndYear:function(periodical,year,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetIssuesByPeriadicalAndYear',false,{periodical:periodical,year:year},succeededCallback,failedCallback,userContext); }}
ContentProvider.registerClass('ContentProvider',Sys.Net.WebServiceProxy);
ContentProvider._staticInstance = new ContentProvider();
ContentProvider.set_path = function(value) { ContentProvider._staticInstance.set_path(value); }
ContentProvider.get_path = function() { return ContentProvider._staticInstance.get_path(); }
ContentProvider.set_timeout = function(value) { ContentProvider._staticInstance.set_timeout(value); }
ContentProvider.get_timeout = function() { return ContentProvider._staticInstance.get_timeout(); }
ContentProvider.set_defaultUserContext = function(value) { ContentProvider._staticInstance.set_defaultUserContext(value); }
ContentProvider.get_defaultUserContext = function() { return ContentProvider._staticInstance.get_defaultUserContext(); }
ContentProvider.set_defaultSucceededCallback = function(value) { ContentProvider._staticInstance.set_defaultSucceededCallback(value); }
ContentProvider.get_defaultSucceededCallback = function() { return ContentProvider._staticInstance.get_defaultSucceededCallback(); }
ContentProvider.set_defaultFailedCallback = function(value) { ContentProvider._staticInstance.set_defaultFailedCallback(value); }
ContentProvider.get_defaultFailedCallback = function() { return ContentProvider._staticInstance.get_defaultFailedCallback(); }
ContentProvider.set_path("/ContentProviderService/ContentProvider.asmx");
ContentProvider.GetCategories= function(onSuccess,onFailed,userContext) {ContentProvider._staticInstance.GetCategories(onSuccess,onFailed,userContext); }
ContentProvider.GetSubcategories= function(category,onSuccess,onFailed,userContext) {ContentProvider._staticInstance.GetSubcategories(category,onSuccess,onFailed,userContext); }
ContentProvider.GetBooksBySubcategory= function(subcategory,onSuccess,onFailed,userContext) {ContentProvider._staticInstance.GetBooksBySubcategory(subcategory,onSuccess,onFailed,userContext); }
ContentProvider.GetPeriodicalYears= function(periodical,onSuccess,onFailed,userContext) {ContentProvider._staticInstance.GetPeriodicalYears(periodical,onSuccess,onFailed,userContext); }
ContentProvider.GetIssuesByPeriadicalAndYear= function(periodical,year,onSuccess,onFailed,userContext) {ContentProvider._staticInstance.GetIssuesByPeriadicalAndYear(periodical,year,onSuccess,onFailed,userContext); }
