This topic contains 5 replies, has 2 voices, and was last updated by Cygnet Drupal 5 years, 11 months ago.
-
AuthorPosts
-
July 11, 2016 at 9:27 am #6660
jackalbrightI’m very new to phpToolkit. I want to use phpToolkit to insert purchase orders from our eCommerce website, but first I’m trying to get some basic Hello World things working and having no luck.
My NSConfig file looks like this. Not sure if the $nshost value is correct.
Code:
nsendpoint = “2015_1”;$nshost = “https://www.openair.com/wsdl.pl”;
$nsemail = “xxxx@xxx.com”;
$nspassword = “xxxxxxxx”;
$nsrole = “3”;
$nsaccount = “99999”;
When I try to do something as basic as this:Code:
$myNSclient = new NetSuiteService();
I get this error:Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn’t load from ‘https://www.openair.com/wsdl.pl/wsdl/v2015_1_0/netsuite.wsdl’
This makes me suspect that the $nshost value is not correct.
Thanks for any guidance. Also, it sure would be nice to have an up-to-date example app for PHP.
This is a cached copy. Click here to see the original post. -
July 11, 2016 at 11:27 am #6661
jackalbrightOk, I changed the $nshost value to
Code:
https://webservices.netsuite.com
and I no longer get the Uncaught Soap Fault exception.Question: What host value should I use to interact with the Sandbox?
Now, my error message is complaining about my email address and account number. I do have an admin account in Openair. I will check to see if they want my company account number, or my personal account number.
-
November 8, 2016 at 3:58 pm #6662
wesley@clickstop.comhttps://webservices.sandbox.netsuite.com
adhokane replied on 12/16/2016, 05:55 AM: Thanks for posting the url.
-
December 16, 2016 at 5:57 am #6663
adhokaneHello All,
I am trying to add the customer (addCustomer.php) in NetSuite using sample code script from my local server. But I the below error occurred, please help me. Thanks.
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn’t load from ‘https://webservices.netsuite.comq/wsdl/v2016_2_0/netsuite.wsdl’ : failed to load external entity "https://webservices.netsuite.comq/ws…ite.wsdl" in E:ApachehtdocsPHPToolkitPHPToolkitNSPHPClient .php:254 Stack trace: #0 E:ApachehtdocsPHPToolkitPHPToolkitNSPHPClient .php(254): SoapClient->SoapClient(‘https://webserv…’, Array) #1 E:ApachehtdocsPHPToolkitPHPToolkitNetSuiteSer vice.php(137277): NSPHPClient->__construct(NULL, Array) #2 E:ApachehtdocsPHPToolkitaddCustomer.php(4): NetSuiteService->__construct() #3 {main} thrown in E:ApachehtdocsPHPToolkitPHPToolkitNSPHPClient .php on line 254
Can you please let us know what I missed here. Thanks in advance.
-
December 18, 2016 at 9:05 pm #6664
chanarbonHi @adhokane,
For that problem, have you checked your the PHP configuration file for your server. Make sure that the php_soap and the php_openssl is not commented. Also what is the setting that you have on you default_socket_timeout. I would suggest that you set it up with a larger number to allow the parser more time before timing out considering that NetSuite’s WSDL is larger compared to other SOAP services.
-
December 6, 2018 at 6:57 am #26087
php_soap and the php_openssl both are not commented still getting this error.
Can any one help me out with this one ?
Thanks
-
AuthorPosts
You must be logged in to reply to this topic.