Developer Forum [ All Topics | New Topic ]

Thread: Error:You are not authenticated. Please run the Login function first

when i try to call  the below webservice code that time i m getting this error
Error:You are not authenticated. Please run the Login function first

some days ago i was getting responce using this same code but now i m getting this error.
so whats the problem i dont know.
So please Help me to find the solution for this error
require_once('lib/nusoap.php');
$soapUrl = "https://technet.rapaport.com/WebServices/RetailFeed/RetailFeed.asmx?wsdl";
$client = new nusoap_client($soapUrl, 'wsdl');

//prepare credentials:
$credentials = array(
'Username' => '*****',
'Password' => '*****');

$result = $client->call('Login', array('parameters' => $credentials), '', '', false, true);
$auth_ticket = $client->getHeaders();

$searchparams["Shape"] = "ROUND";
$searchparams["SizeFrom"] = "0.01";
$searchparams["SizeTo"] = "20.99";
$searchparams["ColorFrom"] = "D";
$searchparams["ColorTo"] = "K";
$searchparams["ClarityFrom"] = "IF";
$searchparams["ClarityTo"] = "VS2";
$searchparams["CutFrom"] = "EXCELLENT";
$searchparams["CutTo"] = "GOOD";
$searchparams["PriceFrom"] = "1";
$searchparams["PriceTo"] = "999999";
$searchparams["Page"] = 1;
$searchparams["PageSize"] = 20;
$searchparams["DiamondsFound"] = 0;

$client->setHeaders($auth_ticket);
$result = $client->call('GetDiamonds', array('parameters' => $searchparams), '', '', false, true);
echo '<h2>Result diamonds</h2><pre>';
print_r($result);
echo '</pre>';

Thanks


>> add a comment
Mahendra Pumbhadiya
12/08/2012 01:44


1 Replies:

hi

your RapLink  service is suspened because you cannot have both RapLink and DLS. i asked our customer service to call you in order to sort it out


Ephraim


>> add a comment
Ephraim
12/16/2012 1:48:00 AM