var CommentService=function() {
CommentService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CommentService.prototype={
GetComments:function(url,succeededCallback, failedCallback, userContext) {
return this._invoke(CommentService.get_path(), 'GetComments',false,{url:url},succeededCallback,failedCallback,userContext); },
AddComment:function(comment,commentBy,url,email,succeededCallback, failedCallback, userContext) {
return this._invoke(CommentService.get_path(), 'AddComment',false,{comment:comment,commentBy:commentBy,url:url,email:email},succeededCallback,failedCallback,userContext); }}
CommentService.registerClass('CommentService',Sys.Net.WebServiceProxy);
CommentService._staticInstance = new CommentService();
CommentService.set_path = function(value) { CommentService._staticInstance._path = value; }
CommentService.get_path = function() { return CommentService._staticInstance._path; }
CommentService.set_timeout = function(value) { CommentService._staticInstance._timeout = value; }
CommentService.get_timeout = function() { return CommentService._staticInstance._timeout; }
CommentService.set_defaultUserContext = function(value) { CommentService._staticInstance._userContext = value; }
CommentService.get_defaultUserContext = function() { return CommentService._staticInstance._userContext; }
CommentService.set_defaultSucceededCallback = function(value) { CommentService._staticInstance._succeeded = value; }
CommentService.get_defaultSucceededCallback = function() { return CommentService._staticInstance._succeeded; }
CommentService.set_defaultFailedCallback = function(value) { CommentService._staticInstance._failed = value; }
CommentService.get_defaultFailedCallback = function() { return CommentService._staticInstance._failed; }
CommentService.set_path("/CommentService.asmx");
CommentService.GetComments= function(url,onSuccess,onFailed,userContext) {CommentService._staticInstance.GetComments(url,onSuccess,onFailed,userContext); }
CommentService.AddComment= function(comment,commentBy,url,email,onSuccess,onFailed,userContext) {CommentService._staticInstance.AddComment(comment,commentBy,url,email,onSuccess,onFailed,userContext); }
