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
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