I am not getting api response of Price list when shape is other that Round and Pear, pleae help with below issue and resaon for same
my current sample code as below
$rap_soapUrl = "https://technet.rapaport.com/webservices/prices/rapaportprices.asmx?wsdl";
$soap_Client = new nusoap_client($rap_soapUrl, 'wsdl');
$rap_credentials['Username'] = "xxxxx";
$rap_credentials['Password'] = "xxx";
//do login, and save authentication ticket for further use:
$result = $soap_Client->call('Login', $rap_credentials);
$rap_auth_ticket = $soap_Client->getHeaders();
//get complete price sheet, and save as a file (call this both for Round and Pear):
$paramsB["shape"] = "Asscher";
$soap_Client->setHeaders($rap_auth_ticket);
$result = $soap_Client->call('GetPriceSheet', $paramsB);
echo "Xxxx".count($result['GetPriceSheetResult']['Prices']['diffgram']['NewDataSet']['Table']);
echo "<pre>";
print_r($result);
echo "</pre>";
$file=fopen("round_prices.csv","w+") or exit("Unable to open file!");
for ($i=0; $i<count($result['GetPriceSheetResult']['Prices']['diffgram']['NewDataSet']['Table']);$i++ ){
$curLine = "";
$curLine .= $result['GetPriceSheetResult']['!Date'];
$curLine .= "," . $result['GetPriceSheetResult']['!Shape'];
$curLine .= "," . $result['GetPriceSheetResult']['Prices']['diffgram']['NewDataSet']['Table'][$i]['LowSize'];
$curLine .= "," . $result['GetPriceSheetResult']['Prices']['diffgram']['NewDataSet']['Table'][$i]['LowSize'];
$curLine .= "," . $result['GetPriceSheetResult']['Prices']['diffgram']['NewDataSet']['Table'][$i]['Color'];
$curLine .= "," . $result['GetPriceSheetResult']['Prices']['diffgram']['NewDataSet']['Table'][$i]['Clarity'];
$curLine .= "," . $result['GetPriceSheetResult']['Prices']['diffgram']['NewDataSet']['Table'][$i]['Price'];
fwrite($file, $curLine.PHP_EOL);
}
fclose($file);