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