Discussions
SuiteWorld is the largest annual gathering of the NetSuite community! It will be held in Las Vegas on October 6-9, 2025. Our customers and partners look forward to SuiteWorld every year as a place to hear the latest from NetSuite, get hands-on learning, and connect with each other. Register now!
Could not connect to host Fault code
We are trying to process the sample files(add_customer.php) from the PHP Toolkit provided by the NetSuite. When we are trying to process the data from WSDL file of NetSuite its showing BAD Request and Response and we are not able to connect to the local host with the following error::
Fault message: Could not connect to host Fault code: 0
array (size=4)
0 =>
array (size=4)
'function' => string '__doRequest' (length=11)
'class' => string 'SoapClient' (length=10)
'type' => string '->' (length=2)
'args' =>
array (size=5)
0 => string '<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="