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.
Php5 Soap
Any help would be appreciated:
I am trying to set up a PHP5 soap client to connect to Netsuite web services. I have no trouble logging in. However, it is the GET request that is throwing me off. I get an error message. Here is my code: [PHP]$wsdl = 'https://webservices.netsuite.com/wsdl/v2_6_0/netsuite.wsdl';
$passport = array('email' => $email, 'password' => $password, 'account' => $accountNo);
$loginRequest = array('passport' => $passport);
try
{
$xConverter = new SoapClient($wsdl, array('trace' => true));
echo $xConverter->__setLocation();
$loginResponse = $xConverter->login($loginRequest);
$baseRef = array('internalId' => '54', 'externalId' => '54', 'type' => 'item');
I am trying to set up a PHP5 soap client to connect to Netsuite web services. I have no trouble logging in. However, it is the GET request that is throwing me off. I get an error message. Here is my code: [PHP]$wsdl = 'https://webservices.netsuite.com/wsdl/v2_6_0/netsuite.wsdl';
$passport = array('email' => $email, 'password' => $password, 'account' => $accountNo);
$loginRequest = array('passport' => $passport);
try
{
$xConverter = new SoapClient($wsdl, array('trace' => true));
echo $xConverter->__setLocation();
$loginResponse = $xConverter->login($loginRequest);
$baseRef = array('internalId' => '54', 'externalId' => '54', 'type' => 'item');
0