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

