var CMSService=function() {
CMSService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CMSService.prototype={
UpdateContent:function(sectionID,sectionElementID,htmlContent,positionIndex,succeededCallback, failedCallback, userContext) {
return this._invoke(CMSService.get_path(), 'UpdateContent',false,{sectionID:sectionID,sectionElementID:sectionElementID,htmlContent:htmlContent,positionIndex:positionIndex},succeededCallback,failedCallback,userContext); },
UpdateArticle:function(isNews,articleID,htmlContent,succeededCallback, failedCallback, userContext) {
return this._invoke(CMSService.get_path(), 'UpdateArticle',false,{isNews:isNews,articleID:articleID,htmlContent:htmlContent},succeededCallback,failedCallback,userContext); },
InsertArticle:function(isNews,articleID,sectionID,startDate,expiryDate,isFeatured,isArchive,friendlyUrl,metaTitle,metaDescription,metaKeywords,title,strapline,listPosition,positionIndex,succeededCallback, failedCallback, userContext) {
return this._invoke(CMSService.get_path(), 'InsertArticle',false,{isNews:isNews,articleID:articleID,sectionID:sectionID,startDate:startDate,expiryDate:expiryDate,isFeatured:isFeatured,isArchive:isArchive,friendlyUrl:friendlyUrl,metaTitle:metaTitle,metaDescription:metaDescription,metaKeywords:metaKeywords,title:title,strapline:strapline,listPosition:listPosition,positionIndex:positionIndex},succeededCallback,failedCallback,userContext); },
SubmitQuery:function(name,company,email,telephone,address,message,succeededCallback, failedCallback, userContext) {
return this._invoke(CMSService.get_path(), 'SubmitQuery',false,{name:name,company:company,email:email,telephone:telephone,address:address,message:message},succeededCallback,failedCallback,userContext); }}
CMSService.registerClass('CMSService',Sys.Net.WebServiceProxy);
CMSService._staticInstance = new CMSService();
CMSService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; CMSService._staticInstance._path = value; }
CMSService.get_path = function() { return CMSService._staticInstance._path; }
CMSService.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); }
CMSService._staticInstance._timeout = value; }
CMSService.get_timeout = function() { 
return CMSService._staticInstance._timeout; }
CMSService.set_defaultUserContext = function(value) { 
CMSService._staticInstance._userContext = value; }
CMSService.get_defaultUserContext = function() { 
return CMSService._staticInstance._userContext; }
CMSService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; CMSService._staticInstance._succeeded = value; }
CMSService.get_defaultSucceededCallback = function() { 
return CMSService._staticInstance._succeeded; }
CMSService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; CMSService._staticInstance._failed = value; }
CMSService.get_defaultFailedCallback = function() { 
return CMSService._staticInstance._failed; }
CMSService.set_path("/Services/CMSService.asmx");
CMSService.UpdateContent= function(sectionID,sectionElementID,htmlContent,positionIndex,onSuccess,onFailed,userContext) {CMSService._staticInstance.UpdateContent(sectionID,sectionElementID,htmlContent,positionIndex,onSuccess,onFailed,userContext); }
CMSService.UpdateArticle= function(isNews,articleID,htmlContent,onSuccess,onFailed,userContext) {CMSService._staticInstance.UpdateArticle(isNews,articleID,htmlContent,onSuccess,onFailed,userContext); }
CMSService.InsertArticle= function(isNews,articleID,sectionID,startDate,expiryDate,isFeatured,isArchive,friendlyUrl,metaTitle,metaDescription,metaKeywords,title,strapline,listPosition,positionIndex,onSuccess,onFailed,userContext) {CMSService._staticInstance.InsertArticle(isNews,articleID,sectionID,startDate,expiryDate,isFeatured,isArchive,friendlyUrl,metaTitle,metaDescription,metaKeywords,title,strapline,listPosition,positionIndex,onSuccess,onFailed,userContext); }
CMSService.SubmitQuery= function(name,company,email,telephone,address,message,onSuccess,onFailed,userContext) {CMSService._staticInstance.SubmitQuery(name,company,email,telephone,address,message,onSuccess,onFailed,userContext); }
