var DNSWS=function() {
DNSWS.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
DNSWS.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return DNSWS._staticInstance.get_path();},
ManageDNSRecord:function(action,dnsRecord,tokenValue,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ManageDNSRecord',false,{action:action,dnsRecord:dnsRecord,tokenValue:tokenValue},succeededCallback,failedCallback,userContext); },
LookupDefaultRecords:function(domain,pk_dnstype,recordtype,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'LookupDefaultRecords',false,{domain:domain,pk_dnstype:pk_dnstype,recordtype:recordtype},succeededCallback,failedCallback,userContext); }}
DNSWS.registerClass('DNSWS',Sys.Net.WebServiceProxy);
DNSWS._staticInstance = new DNSWS();
DNSWS.set_path = function(value) { DNSWS._staticInstance.set_path(value); }
DNSWS.get_path = function() { return DNSWS._staticInstance.get_path(); }
DNSWS.set_timeout = function(value) { DNSWS._staticInstance.set_timeout(value); }
DNSWS.get_timeout = function() { return DNSWS._staticInstance.get_timeout(); }
DNSWS.set_defaultUserContext = function(value) { DNSWS._staticInstance.set_defaultUserContext(value); }
DNSWS.get_defaultUserContext = function() { return DNSWS._staticInstance.get_defaultUserContext(); }
DNSWS.set_defaultSucceededCallback = function(value) { DNSWS._staticInstance.set_defaultSucceededCallback(value); }
DNSWS.get_defaultSucceededCallback = function() { return DNSWS._staticInstance.get_defaultSucceededCallback(); }
DNSWS.set_defaultFailedCallback = function(value) { DNSWS._staticInstance.set_defaultFailedCallback(value); }
DNSWS.get_defaultFailedCallback = function() { return DNSWS._staticInstance.get_defaultFailedCallback(); }
DNSWS.set_path("/WebServices/DNSWS.asmx");
DNSWS.ManageDNSRecord= function(action,dnsRecord,tokenValue,onSuccess,onFailed,userContext) {DNSWS._staticInstance.ManageDNSRecord(action,dnsRecord,tokenValue,onSuccess,onFailed,userContext); }
DNSWS.LookupDefaultRecords= function(domain,pk_dnstype,recordtype,onSuccess,onFailed,userContext) {DNSWS._staticInstance.LookupDefaultRecords(domain,pk_dnstype,recordtype,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('BusinessLogic');
if (typeof(BusinessLogic.DNSRecord) === 'undefined') {
BusinessLogic.DNSRecord=gtc("DNSRecord");
BusinessLogic.DNSRecord.registerClass('BusinessLogic.DNSRecord');
}
if (typeof(BusinessLogic.DefaultDNSRecord) === 'undefined') {
BusinessLogic.DefaultDNSRecord=gtc("BusinessLogic.DefaultDNSRecord");
BusinessLogic.DefaultDNSRecord.registerClass('BusinessLogic.DefaultDNSRecord');
}
if (typeof(BusinessLogic.DNSResult) === 'undefined') {
BusinessLogic.DNSResult=gtc("DNSResult");
BusinessLogic.DNSResult.registerClass('BusinessLogic.DNSResult');
}
if (typeof(BusinessLogic.ResultStatuses) === 'undefined') {
BusinessLogic.ResultStatuses = function() { throw Error.invalidOperation(); }
BusinessLogic.ResultStatuses.prototype = {Added: 0,Updated: 1,Deleted: 2,Error: 3,Unknown: 4,DefaultsLoaded: 5}
BusinessLogic.ResultStatuses.registerEnum('BusinessLogic.ResultStatuses', true);
}
Type.registerNamespace('RebelCommon');
if (typeof(RebelCommon.DNSRecordTypes) === 'undefined') {
RebelCommon.DNSRecordTypes = function() { throw Error.invalidOperation(); }
RebelCommon.DNSRecordTypes.prototype = {A: 1,CNAME: 2,MX: 3,NS: 4,SOA: 5,TXT: 6,SPF: 7}
RebelCommon.DNSRecordTypes.registerEnum('RebelCommon.DNSRecordTypes', true);
}

