var GetAQuote=function() {
GetAQuote.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
GetAQuote.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return GetAQuote._staticInstance.get_path();},
caculatePostage:function(numberOfPacks,succeededCallback, failedCallback, userContext) {
/// <param name="numberOfPacks" type="Array">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(), 'caculatePostage',false,{numberOfPacks:numberOfPacks},succeededCallback,failedCallback,userContext); },
returnLicenceFee:function(secType,succeededCallback, failedCallback, userContext) {
/// <param name="secType" type="GetAQuote_sectorTypes">GetAQuote+sectorTypes</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(), 'returnLicenceFee',false,{secType:secType},succeededCallback,failedCallback,userContext); },
toggleDisplay:function(display,control,succeededCallback, failedCallback, userContext) {
/// <param name="display" type="Boolean">System.Boolean</param>
/// <param name="control" type="String">System.String</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(), 'toggleDisplay',false,{display:display,control:control},succeededCallback,failedCallback,userContext); }}
GetAQuote.registerClass('GetAQuote',Sys.Net.WebServiceProxy);
GetAQuote._staticInstance = new GetAQuote();
GetAQuote.set_path = function(value) {
GetAQuote._staticInstance.set_path(value); }
GetAQuote.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return GetAQuote._staticInstance.get_path();}
GetAQuote.set_timeout = function(value) {
GetAQuote._staticInstance.set_timeout(value); }
GetAQuote.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return GetAQuote._staticInstance.get_timeout(); }
GetAQuote.set_defaultUserContext = function(value) { 
GetAQuote._staticInstance.set_defaultUserContext(value); }
GetAQuote.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return GetAQuote._staticInstance.get_defaultUserContext(); }
GetAQuote.set_defaultSucceededCallback = function(value) { 
 GetAQuote._staticInstance.set_defaultSucceededCallback(value); }
GetAQuote.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return GetAQuote._staticInstance.get_defaultSucceededCallback(); }
GetAQuote.set_defaultFailedCallback = function(value) { 
GetAQuote._staticInstance.set_defaultFailedCallback(value); }
GetAQuote.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return GetAQuote._staticInstance.get_defaultFailedCallback(); }
GetAQuote.set_path("/WebService/GetAQuote.asmx");
GetAQuote.caculatePostage= function(numberOfPacks,onSuccess,onFailed,userContext) {
/// <param name="numberOfPacks" type="Array">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>
GetAQuote._staticInstance.caculatePostage(numberOfPacks,onSuccess,onFailed,userContext); }
GetAQuote.returnLicenceFee= function(secType,onSuccess,onFailed,userContext) {
/// <param name="secType" type="GetAQuote_sectorTypes">GetAQuote+sectorTypes</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>
GetAQuote._staticInstance.returnLicenceFee(secType,onSuccess,onFailed,userContext); }
GetAQuote.toggleDisplay= function(display,control,onSuccess,onFailed,userContext) {
/// <param name="display" type="Boolean">System.Boolean</param>
/// <param name="control" type="String">System.String</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>
GetAQuote._staticInstance.toggleDisplay(display,control,onSuccess,onFailed,userContext); }
if (typeof(sectorTypes) === 'undefined') {
sectorTypes = function() { throw Error.invalidOperation(); }
sectorTypes.prototype = {Private: 0,Voluntry: 1,Maintained: 2}
sectorTypes.registerEnum('sectorTypes', true);
}
