Friday, February 15, 2019

Web Services > PHP Toolkit > Unable to connect to Beta with version 2011.2 and earlier

PHP Toolkit 2011.2 and earlier point to the old Beta URL.  To adjust the URL value:

1. Modify your PHPToolkit.php file.
2. Locate the following portion of code:

abstract class nsHost {

    const live = "https://webservices.netsuite.com";
    const beta = "https://webservices.beta.netsuite.com";
    const sandbox = "https://webservices.sandbox.netsuite.com";

}

3. Change the line: const beta = "https://webservices.beta.netsuite.com";
    - To: const beta = "https://webservices.na1.beta.netsuite.com";

You can then modify your login_info.php and point the $myNSclient value to point to 'beta'.

No comments:

Post a Comment