Hi, I am new to NetSuite. I am trying to send info from Netsuite to Magento, via Magento API. In a normal condition, I execute
$user = 'user';
$pass = 'password';
$url = 'http://example.hosting.com/magento/api/soap/?wsdl';
$webClient = new SoapClient($url);
$webSession = $webClient->login($user, $pass);
$result = $webClient->call($webSession, 'ApiMethod', 'data');
But I don´t understand how to make it in a Script of Netsuite. I found a method nlapiRequestURL, but I don´t understand how to make the login and send the session.