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