var WCFPolling=function() {
WCFPolling.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
WCFPolling.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return WCFPolling._staticInstance.get_path();},
DoWork:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DoWork',false,{},succeededCallback,failedCallback,userContext); },
JSON_insertPolling:function(pollingRef,optionRef,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'JSON_insertPolling',false,{pollingRef:pollingRef,optionRef:optionRef},succeededCallback,failedCallback,userContext); }}
WCFPolling.registerClass('WCFPolling',Sys.Net.WebServiceProxy);
WCFPolling._staticInstance = new WCFPolling();
WCFPolling.set_path = function(value) { WCFPolling._staticInstance.set_path(value); }
WCFPolling.get_path = function() { return WCFPolling._staticInstance.get_path(); }
WCFPolling.set_timeout = function(value) { WCFPolling._staticInstance.set_timeout(value); }
WCFPolling.get_timeout = function() { return WCFPolling._staticInstance.get_timeout(); }
WCFPolling.set_defaultUserContext = function(value) { WCFPolling._staticInstance.set_defaultUserContext(value); }
WCFPolling.get_defaultUserContext = function() { return WCFPolling._staticInstance.get_defaultUserContext(); }
WCFPolling.set_defaultSucceededCallback = function(value) { WCFPolling._staticInstance.set_defaultSucceededCallback(value); }
WCFPolling.get_defaultSucceededCallback = function() { return WCFPolling._staticInstance.get_defaultSucceededCallback(); }
WCFPolling.set_defaultFailedCallback = function(value) { WCFPolling._staticInstance.set_defaultFailedCallback(value); }
WCFPolling.get_defaultFailedCallback = function() { return WCFPolling._staticInstance.get_defaultFailedCallback(); }
WCFPolling.set_path("/sysServices/others/WCFPolling.svc");
WCFPolling.DoWork= function(onSuccess,onFailed,userContext) {WCFPolling._staticInstance.DoWork(onSuccess,onFailed,userContext); }
WCFPolling.JSON_insertPolling= function(pollingRef,optionRef,onSuccess,onFailed,userContext) {WCFPolling._staticInstance.JSON_insertPolling(pollingRef,optionRef,onSuccess,onFailed,userContext); }

