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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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