var GetNews=function() {
GetNews.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
GetNews.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return GetNews._staticInstance.get_path();},
GetNewsContent:function(id,succeededCallback, failedCallback, userContext) {
/// <param name="id" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetNewsContent',false,{id:id},succeededCallback,failedCallback,userContext); }}
GetNews.registerClass('GetNews',Sys.Net.WebServiceProxy);
GetNews._staticInstance = new GetNews();
GetNews.set_path = function(value) {
GetNews._staticInstance.set_path(value); }
GetNews.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return GetNews._staticInstance.get_path();}
GetNews.set_timeout = function(value) {
GetNews._staticInstance.set_timeout(value); }
GetNews.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return GetNews._staticInstance.get_timeout(); }
GetNews.set_defaultUserContext = function(value) { 
GetNews._staticInstance.set_defaultUserContext(value); }
GetNews.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return GetNews._staticInstance.get_defaultUserContext(); }
GetNews.set_defaultSucceededCallback = function(value) { 
 GetNews._staticInstance.set_defaultSucceededCallback(value); }
GetNews.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return GetNews._staticInstance.get_defaultSucceededCallback(); }
GetNews.set_defaultFailedCallback = function(value) { 
GetNews._staticInstance.set_defaultFailedCallback(value); }
GetNews.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return GetNews._staticInstance.get_defaultFailedCallback(); }
GetNews.set_enableJsonp = function(value) { GetNews._staticInstance.set_enableJsonp(value); }
GetNews.get_enableJsonp = function() { 
/// <value type="Boolean">Specifies whether the service supports JSONP for cross domain calling.</value>
return GetNews._staticInstance.get_enableJsonp(); }
GetNews.set_jsonpCallbackParameter = function(value) { GetNews._staticInstance.set_jsonpCallbackParameter(value); }
GetNews.get_jsonpCallbackParameter = function() { 
/// <value type="String">Specifies the parameter name that contains the callback function name for a JSONP request.</value>
return GetNews._staticInstance.get_jsonpCallbackParameter(); }
GetNews.set_path("http://www.gd-zyc.com/Webservices/GetNews.svc");
GetNews.GetNewsContent= function(id,onSuccess,onFailed,userContext) {
/// <param name="id" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
GetNews._staticInstance.GetNewsContent(id,onSuccess,onFailed,userContext); }

