Example #1
0
 /// <remarks/>
 public void UpdateDomainContactAsync(string sCLTRID, Credential credential, Domain[] domainArray, ContactInfo registrant, ContactInfo admin, ContactInfo billing, ContactInfo tech, object userState) {
     if ((this.UpdateDomainContactOperationCompleted == null)) {
         this.UpdateDomainContactOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateDomainContactOperationCompleted);
     }
     this.InvokeAsync("UpdateDomainContact", new object[] {
                 sCLTRID,
                 credential,
                 domainArray,
                 registrant,
                 admin,
                 billing,
                 tech}, this.UpdateDomainContactOperationCompleted, userState);
 }
Example #2
0
 public string UpdateDomainContact(string sCLTRID, Credential credential, Domain[] domainArray, ContactInfo registrant, ContactInfo admin, ContactInfo billing, ContactInfo tech) {
     object[] results = this.Invoke("UpdateDomainContact", new object[] {
                 sCLTRID,
                 credential,
                 domainArray,
                 registrant,
                 admin,
                 billing,
                 tech});
     return ((string)(results[0]));
 }
Example #3
0
 /// <remarks/>
 public void UpdateDomainContactAsync(string sCLTRID, Credential credential, Domain[] domainArray, ContactInfo registrant, ContactInfo admin, ContactInfo billing, ContactInfo tech) {
     this.UpdateDomainContactAsync(sCLTRID, credential, domainArray, registrant, admin, billing, tech, null);
 }
Example #4
0
 /// <remarks/>
 public void UpdateDomainAlertAsync(string sCLTRID, Credential credential, DomainAlert domainAlert, string sDomainMonitorID, ContactInfo registrant) {
     this.UpdateDomainAlertAsync(sCLTRID, credential, domainAlert, sDomainMonitorID, registrant, null);
 }
Example #5
0
 /// <remarks/>
 public void UpdateDomainAlertAsync(string sCLTRID, Credential credential, DomainAlert domainAlert, string sDomainMonitorID, ContactInfo registrant, object userState) {
     if ((this.UpdateDomainAlertOperationCompleted == null)) {
         this.UpdateDomainAlertOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateDomainAlertOperationCompleted);
     }
     this.InvokeAsync("UpdateDomainAlert", new object[] {
                 sCLTRID,
                 credential,
                 domainAlert,
                 sDomainMonitorID,
                 registrant}, this.UpdateDomainAlertOperationCompleted, userState);
 }
Example #6
0
 public string UpdateDomainAlert(string sCLTRID, Credential credential, DomainAlert domainAlert, string sDomainMonitorID, ContactInfo registrant) {
     object[] results = this.Invoke("UpdateDomainAlert", new object[] {
                 sCLTRID,
                 credential,
                 domainAlert,
                 sDomainMonitorID,
                 registrant});
     return ((string)(results[0]));
 }
Example #7
0
 /// <remarks/>
 public void SetupDomainAlertAsync(string sCLTRID, Credential credential, DomainAlert domainAlert, ContactInfo registrant) {
     this.SetupDomainAlertAsync(sCLTRID, credential, domainAlert, registrant, null);
 }
Example #8
0
 public string SetupDomainAlert(string sCLTRID, Credential credential, DomainAlert domainAlert, ContactInfo registrant) {
     object[] results = this.Invoke("SetupDomainAlert", new object[] {
                 sCLTRID,
                 credential,
                 domainAlert,
                 registrant});
     return ((string)(results[0]));
 }
		private void Transfer()
		{
			Shopper newShopper = new Shopper()
			{
				user = "******",
				pwd = "ghijk",
				firstname = "Joe",
				lastname = "Smith",
				email = "*****@*****.**",
				phone = "+1.7775551212"
			};
			ContactInfo newRegistrant = new ContactInfo()
			{
				fname = "Joe",
				lname = "Smith",
				email = "*****@*****.**",
				sa1 = "1 S. Main St.",
				city = "Oakland",
				sp = "California",
				pc = "97123",
				cc = "United States",
				phone = "+1.7775551212"
			};

			DomainTransfer[] dtArray = new DomainTransfer[1];
			dtArray[0] = new DomainTransfer()
			{
				sld = "example",
				tld = "com",
				order = new OrderItem()
				{
					productid = (int)ProductID.TransferDotCOM
				}
			};

			string trid = Guid.NewGuid().ToString();
			string responseXml =
				wapi.OrderDomainTransfers(trid, cred, newShopper, dtArray, null);
			otherTransactionIDs.Add(trid);
		}
Example #10
0
		private void Register()
		{
			ContactInfo registrant = new ContactInfo()
			{
				fname = "Artemus",
				lname = "Gordon",
				email = "*****@*****.**",
				phone = "+1.8885551212",
				sa1 = "2 N. Main St.",
				city = "Valdosta",
				sp = "Georgia",
				pc = "17123",
				cc = "United States",
			};

			DomainRegistration[] drArray = new DomainRegistration[this.domainNames.Length];
			for (int i = 0; i < this.domainNames.Length; i++)
			{
				string topLevelDomain = Helpers.GetTopLevelDomain(this.domainNames[i]);
				drArray[i] = new DomainRegistration()
				{
					nsArray = new NS[] { new NS() { name = "ns1.example.com" }, new NS() { name = "ns2.example.com" } },
					registrant = registrant,
					order = new OrderItem() { productid = (int)GetProductID(topLevelDomain, RegistrationPeriodInYears, false), riid = i.ToString() },
					tld = topLevelDomain,
					sld = Helpers.GetSecondLevelDomain(this.domainNames[i]),
					period = RegistrationPeriodInYears
				};

				if (topLevelDomain == "us")
				{
					drArray[i].nexus = new Nexus()
					{
						category = "citizen of US",
						use = "personal",
						country = "us"
					};
				}
			}

			Shopper shopper = new Shopper();
			if (this.userID > 0)
			{
				shopper.user = userID.ToString();
			}
			else
			{
				shopper.user = "******";
				shopper.pwd = "abcde";
				shopper.email = "*****@*****.**";
				shopper.firstname = "Artemus";
				shopper.lastname = "Gordon";
				shopper.phone = "+1.8885551212"; // country code . number
			}

			string returnXml = wapi.OrderDomains(orderDomainTransactionID, cred, shopper, drArray, null, "domain");
			RegisterDomainsResponse r = new RegisterDomainsResponse(returnXml);
			if (this.orderDomainTransactionID != r.UniqueClientTransactionID) throw new InvalidResponseException(returnXml);
			this.OrderID = r.OrderID;
			this.userID = r.ShopperID;
		}