Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Outbound single-signon "demoapp" PHP throws error
I've got the demoapp.php script from the NetSuite help almost working. I'm making a subtab which will contain a list of available products to download.
The authentication "out" works, in that my external PHP code gets a positive response from NetSuite. The subtab (on a customer record) renders the result. However, the nsClient->get crashes out here:
[CODE]
$myNSref = new nsRecordRef(array("internalId"=>$nsId,"type"=>"customer"));
$resp = $myNSclient->get($myNSref);
[/CODE]
... with this:
[CODE]
Fatal error: Uncaught SoapFault exception: [soapenv:Server.userException] Your connection has timed out. Please log in again. in .../PHPtoolkit.php:1608
Stack trace:
The authentication "out" works, in that my external PHP code gets a positive response from NetSuite. The subtab (on a customer record) renders the result. However, the nsClient->get crashes out here:
[CODE]
$myNSref = new nsRecordRef(array("internalId"=>$nsId,"type"=>"customer"));
$resp = $myNSclient->get($myNSref);
[/CODE]
... with this:
[CODE]
Fatal error: Uncaught SoapFault exception: [soapenv:Server.userException] Your connection has timed out. Please log in again. in .../PHPtoolkit.php:1608
Stack trace:
0