Hi Ephraim.
Could you pls tell us where the output error comes from?
<faultcode>soap:Client</faultcode> <faultstring> Server was unable to read request. ---> There is an error in XML document (1, 2833). ---> Input string was not in a correct format. </faultstring> <detail/> </soap:Fault>
Best Wishes
******************************* <?php header("Content-type: text/xml"); ?> <?php require_once('nusoap-0.9.5/lib/nusoap.php'); $soapUrl = "https://technet.rapaport.com/WebServices/RetailFeed/Feed.asmx?wsdl"; $client = new nusoap_client($soapUrl, 'wsdl', null, null, null, null); $credentials = array( 'Username' => '****', 'Password' => '*****'); $result = $client->call('Login', array('parameters' => $credentials), '', '', false, true); $auth_ticket = $client->getHeaders(); $searchparams["ShapeCollection"]['Shapes'] = array("ROUND","PEAR","PRINCESS","MARQUISE"); $searchparams["LabCollection"]['Labs'] = array("GIA", "IGI", "AGS", "HRD", "EGL_USA"); $searchparams["FluorescenceColorsCollection"]['FluorescenceColors']= array("BLUE","YELLOW","GREEN","RED","ORANGE","WHITE"); $searchparams["FluorescenceIntensityCollection"]['FluorescenceIntensities']= array("NONE","VERY_SLIGHT","FAINT","MEDIUM","SLIGHT","STRONG","VERY_STRONG"); $searchparams["CuletSizesCollection"]['CuletSizes']= array("VERY_SMALL","SMALL","MEDIUM","LARGE"); $searchparams["FancyColorCollection"]['FancyColors']= array("YELLOW","PINK","BROWN","GREEN","BLACK","BLUE","ORANGE","GRAY"); $searchparams["ColorFrom"] = "D"; $searchparams["ColorTo"] = "M"; $searchparams["SearchType"] = "WHITE"; $searchparams["FancyColorIntensityFrom"] = "FAINT"; $searchparams["FancyColorIntensityTo"] = "FANCY_DEEP"; $searchparams["ClarityFrom"] = "IF"; $searchparams["ClarityTo"] = "I1"; $searchparams["CutFrom"] = "EXCELLENT"; $searchparams["CutTo"] = "FAIR"; $searchparams["PolishFrom"] = "Excellent"; $searchparams["PolishTo"] = "Fair"; $searchparams["SymmetryFrom"] = "Excellent"; $searchparams["SymmetryTo"] = "Fair"; $searchparams["PageNumber"] = "1"; $searchparams["PageSize"] = "25"; $searchparams["GirdleSizeMin"] = "EXTR_THIN"; $searchparams["GirdleSizeMax"] = "EXTR_THICK"; $searchparams["SizeFrom"] = "0.05"; $searchparams["SizeTo"] = "30.00"; $searchparams["PriceFrom"] = "0"; $searchparams["PriceTo"] = "10000000"; $searchparams["DepthPercentFrom"] = "0"; $searchparams["DepthPercentTo"] = "100"; $searchparams["TablePercentFrom"] = "0"; $searchparams["TablePercentFrom"] = "100"; $searchparams["MeasLengthFrom"] = "0"; $searchparams["MeasLengthTo"] = "1000"; $searchparams["MeasWidthFrom"] = "0"; $searchparams["MeasWidthTo"] = "1000"; $searchparams["MeasDepthFrom"] = "0"; $searchparams["MeasDepthTo"] = "1000"; $searchparams["SortDirection"] = "ASC"; $searchparams["SortBy"]="SHAPE"; $client->setHeaders($auth_ticket); $result = $client->call('GetDiamonds', array('SearchParams' => $searchparams), '', '', false, true); echo $client->responseData; ?>
|