Fw: OpenSRS Undefined Returns...

From: feedback@webdivisor.com
Date: Mon Feb 02 2004 - 14:43:32 EST


Making a call and having the return text e-mailed to you is not the brightest and wisest solution to this issue. There are many different errors that can arise from the API that we really do not know about, the validation process of the API needs to be better put in all areas so that we can get the error and customize it, or get a certain error response code for each specific error. I think that this is very crucial in the programming process for better business practices.
  ----- Original Message -----
  From: Krishnendu Dutta
  To: Amit Rana ; support@xv.net ; dev-list@opensrs.net
  Sent: Monday, February 02, 2004 4:43 AM
  Subject: RE: OpenSRS Undefined Returns...

  I think, they provide enough information in their API documentaion. anybody should have enough information to do the required call and process information. And if you really want to see what parameters opensrs returns while making a call, you can catch the array in a variable and get it emailed to you.In a php specific context:
  $result=$opensrs->many_comands($cmd);
  ob_start();
  print_r($cmd);
  $tomail=ob_get_contents();
  ob_end_clean();
  mail($to,"Opensrs Array","$tomail","From:$from");

  The above should return the array opensrs returns to any call.
  I hope this helps..

  Krishnendu
  Amit Rana <rana@solis.jp> wrote:

> Shouldnt OpenSRS have a list of all possible returned parameters?
> Does OpenSRS have a list of all returned parameters/error messages in
    or >under any circumstances?
    Any such list would be "very" helpful especially when you don't want to
    show English error messages to users. For eg: when an SSL order fails
    because of a bad CSR there could be several things wrong with the CSR
    which API returns nicely but there is no mapping of error code/error
    message (or any list of all messages) using which we can customize our
    messages or handle errors as we want.

    Regards,
    Amit.

    -----Original Message-----
    From: owner-dev-list@opensrs.org [mailto:owner-dev-list@opensrs.org] On
    Behalf Of feedback@webdivisor.com
    Sent: Monday, February 02, 2004 9:35 AM
    To: dev-list@opensrs.net
    Subject: OpenSRS Undefined Returns...

    Shouldnt OpenSRS have a list of all possible returned parameters? For
    example if someone trying to code the API to transfer domains and set
    the domain transfer years to 5 years, OpenSRS would fail because it does
    not support 5 year transfers... causing some problems in the future...
    Does OpenSRS have a list of all returned parameters/error messages in or
    under any circumstances?
     
    Thank You
    -Hayk A.

------------------------------------------------------------------------------
  BT Yahoo! Broadband - Free modem offer, sign up online today and save £80



This archive was generated by hypermail 2.1.3 : Tue Oct 19 2004 - 23:37:53 EDT