Home > Account Management, API General, Permissions > SWS RetrievePassword Method
  1. swsBecky
    April 5, 2017 at 1:38 pm

    Updated July 28, 2014: Updated the method to return “No record found” error instead of “Invalid object” error.

  2. swsBecky
    April 5, 2017 at 1:45 pm

    Updated July 17, 2014: Recent updates were made to the data access in the RetrievePassword method. Response times should be shorter, data and the logic by which it is retrieved, remains the same.

  3. swsBecky
    April 6, 2017 at 8:56 am

    Updated Jan. 21, 2013: We’ve altered the behavior of RetrievePassword when it’s given an account that does not exist. Previously, it would return successfully with a null password. Now it will throw a SOAP exception. This was done in the process of optimizing the method to be faster.

    Normally, you’d call RetrievePassword in the case where a customer had forgotten his or her password and you had a mechanism to email the password to the address on file. Therefore, you know the account exists before calling the method. However, we’ve discovered an alternate usage pattern that calls the method before knowing if the account exists and inspects the return value to determine if it actually does. If you are using this alternate pattern and are doing different things depending on if the returned password is null, you will need to change your logic so that you catch a SOAP exception instead.

    Below are examples of the old SOAP response and the new SOAP exception when RetrievePassword is called with an account that does not exist.

    CURRENT RESPONSE

    NEW RESPONSE

    soap:Server
    System.Web.Services.Protocols.SoapException: Server was unable to process request. —> System.Exception: The web service was unable to process your request based on the information given. Please contact Centershift with any questions.–>
    at SWS.WS.RetrievePassword(LookupUser_Request UserInfo, Password_Request Request)
    — End of inner exception stack trace —

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: