jwvdiermen / TransIP-API

Client library for the TransIP API written in C#.
MIT License
3 stars 10 forks source link

While trying to register a domain using your project sample #1

Open faheemsial opened 10 years ago

faheemsial commented 10 years ago

WhoIs etc is successfull but While trying to register a domain using your project sample i am getting following error:

Error: transIP API Invalid API signature, signature does not match the request. (timestamp

Please advise and tell if you need any further details. errorindomainregistration

jwvdiermen commented 10 years ago

Looks like I needed to set some default values using a default constructor in the Domain DTO. I've changed this and pushed an update.

Can you confirm it works now?

faheemsial commented 10 years ago

Sorry for late response as my setup was crashed and needs to re-install things. I tried this updated code and this time it was success to register domain. But i am having issues while trying to setOwner contact. My request parameters were:

contactrequest

And the resulting error was as below:

contacterror

I also tried by providing (CompanyName/CompanyType/CompanyNumber) but no success. I provided valid sample parameters from here: https://api.transip.nl/docs/transip.nl/class-Transip_WhoisContact.html

Please advise. And thanks again for your help. Its really appreciated.

jwvdiermen commented 10 years ago

I think you should put these WHOIS contacts directly in the "Register" method call instead of calling them after. The "SetOwner" and "SetContacts" methods are for existing domains. Can you confirm you get the exception on line 202?

On Thu, Mar 20, 2014 at 6:07 AM, Faheem Akbar Sial <notifications@github.com

wrote:

Sorry for late response as my setup was crashed and needs to re-install things. I tried this updated code and this time it was success to register domain. But i am having issues while trying to setOwner contact. My request parameters were:

[image: contactrequest]https://f.cloud.github.com/assets/6929736/2469073/40c4a870-afed-11e3-80b6-fbc0a237121f.png

And the resulting error was as below:

[image: contacterror]https://f.cloud.github.com/assets/6929736/2469075/52726c9c-afed-11e3-8b3d-c52f82829274.png

I also tried by providing (CompanyName/CompanyType/CompanyNumber) but no success. I provided valid sample parameters from here: https://api.transip.nl/docs/transip.nl/class-Transip_WhoisContact.html

Please advise. And thanks again for your help. Its really appreciated.

Reply to this email directly or view it on GitHubhttps://github.com/jwvdiermen/TransIP-API/issues/1#issuecomment-38135630 .

faheemsial commented 10 years ago

. I tried following steps with no success:

  1. Register domain by providing all contacts type supported, but error was same.
  2. Registered domain without any contact and then setting owner contact only using setOwner() call of API, error was same.
  3. Registered domain without any contact and then setting all contacts all together using setContacts() call of API, error was same.
faheemsial commented 10 years ago

got a tip from TransIP directly that i should try all parameters in small case alphabets and it was success. Specially WhoIsContactTypes (registrant/admin/tech) these all should be passed in small case letters and this thing worked fine for me ... strange. :)

jwvdiermen commented 10 years ago

Great to hear you got it working. I'll look into extending the code to include some validation of sorts, but I'm currently very short on time.

If you have any other problems, let me know.

On Mon, Mar 24, 2014 at 11:52 AM, Faheem Akbar Sial < notifications@github.com> wrote:

got a tip from TransIP directly that i should try all parameters in small case alphabets and it was success. Specially WhoIsContactTypes (registrant/admin/tech) these all should be passed in small case letters and this thing worked fine for me ... strange. :)

Reply to this email directly or view it on GitHubhttps://github.com/jwvdiermen/TransIP-API/issues/1#issuecomment-38431055 .