Discussions
when adding a customer can't add both shipping and billing addresses
This is my code, it successfully adds one address, but if shipping and billing are different, the soap message (pls see below) in rejected. I figured that it's because the name of the second element in addressbooklist is "__numeric_0" instead of "addressbook" but PHP doesn't allow to have two arrays entries with the same keys. What should I do, pls help!
<?php
require_once('nusoap.php');
require_once('nsLib.php');
$client = new soapclientw('https://localhost:8443/services/NetSuitePort_2_6');
// change if using SoapScope:
// https://webservices.netsuite.com/services/NetSuitePort_2_6
// https://localhost:8443/services/NetSuitePort_2_6
$result = login($client, "***@***.com", "***", "693740", "3");
if ($result['sessionResponse']['status']['!isSuccess'])