magento-1.12

Send info from Netsuite to Magento Api

蹲街弑〆低调 提交于 2019-12-25 06:31:56
问题 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'); Buy I don´t undestand how make it in a Script of Netsuite. I found a method nlapiRequestURL, but I don´t understand how make the login and send the session.