|
Hi guys, Please help me with this. I used this PHP - nusoap sample code (view here) to integrate Inventory Link to my website. everything work fine, except for these:
1. I can't search the diamond using Lab variable $searchparams["Lab"] = "GIA"; $searchparams["Lab"] = "IGI"; Please advice how i can search the diamond by one or more lab.
2. I found that with the diamond report, some of them you can find in the lab's website http://www.hrdantwerplink.be/?record_number=14006262006&weight=3.270 while some of them are hosted in Rapnet's site (i think) http://www.diamondselections.com/GetCertificate.aspx?DiamondID=55650393 (i took those url from the Rapnet Iframe) How can you know exactly where to get the report's url?
Thank you very much for your time and help.
|
>> add a comment
|
L.N
09/04/2014 03:03
|
|
7
Replies:
|
1. You need send Collection 'LabCollection' - array with labs you want, you can see more : http://technet.rapaport.com/WebServices/RetailFeed/Feed.asmx?op=GetDiamonds 2. To get the grading certificate path: If HasCertFile=true then you can use the following url to get the grading certificate path http://www.diamondselections.com/GetCertificatePath.aspx?diamondid=XXX
|
>> add a comment
|
Reuven
9/9/2014 3:19:00 AM
|
|
|
thank you very much for your reply, Reuven. However, i'm not sure what i did wrong so that it still didn't work properly yet.
1. diamond result are listed with all Labs instead of just GIA, HRD and EGL_USA
2. diamond certification link with http://www.diamondselections.com/GetCertificatePath.aspx?diamondid=XXX does not work all the time (for HRD and EGL_USA). I check HasCertFile=true before displaying certification URL - blank page: http://www.diamondselections.com/GetCertificatePath.aspx?diamondid=55856358 but when you check with HRD site it shows the cert. http://www.hrdantwerplink.be/?record_number=14026783002&weight=5.020&L=
or - just show url : http://www.diamondselections.com/GetCertificatePath.aspx?diamondid=44210246 3. Also, i found that the search with Cut, Symmetry, Polish and fluorescence doesn't work either. Please take a look at my code below and let me know if i did anything wrong
$searchparams["LabCollection"]['Labs'] = array("GIA", "HRD", "EGL_USA");
$searchparams["ClarityFrom"] = strtoupper($_GET['clarityMin']); $searchparams["ClarityTo"] = strtoupper( $_GET['clarityMax'] );
$searchparams["CutFrom"] = strtoupper($_GET['cutMin']); $searchparams["CutTo"] = strtoupper( $_GET['cutMax']);
$searchparams["PolishFrom"] = strtoupper($_GET['polishMin']); $searchparams["PolishTo"] = strtoupper( $_GET['polishMax']);
$searchparams["SymmetryFrom"] = strtoupper($_GET['symMin']); $searchparams["SymmetryTo"] = strtoupper( $_GET['symMax']);
$searchparams["FluorescenceFrom"] = strtoupper($_GET['fluorMin']); $searchparams["FluorescenceTo"] = strtoupper($_GET['fluorMax']);
Thank you very much for your help.
|
>> add a comment
|
L.N
9/9/2014 3:03:00 PM
|
|
|
Hi, I just repost my code here with some explanation, which may help you...
$searchparams["LabCollection"]['Labs'] = array("GIA", "HRD", "EGL_USA");
$searchparams["PolishFrom"] = ucwords($_GET['polishMin']); $searchparams["PolishTo"] = ucwords($_GET['polishMax']); //-- The Value will be Excellent or Very_Good or Good or Fair
$searchparams["SymmetryFrom"] = ucwords($_GET['symMin']); $searchparams["SymmetryTo"] = ucwords($_GET['symMax']); //-- The Value will be Excellent or Very_Good or Good or Fair
$searchparams["FluorescenceFrom"] = strtoupper($_GET['fluorMin']); $searchparams["FluorescenceTo"] = strtoupper($_GET['fluorMax']); //--- The value will be NONE or VERY_SLIGHT or FAINT or MEDIUM or SLIGHT or STRONG or VERY_STRONG
I have search by Cut work since i found out that the input value i insert is in a wrong format.
Thanks a lot
|
>> add a comment
|
L.N
9/10/2014 4:31:00 PM
|
|
|
Hi, could anyone please help with my answer. This is urgent for me?
|
>> add a comment
|
L.N
9/17/2014 12:41:00 PM
|
|
|
What is the XML output for: $searchparams["LabCollection"]['Labs'] = array("GIA", "HRD", "EGL_USA");
Are you sure it comes out like this:
<LabCollection> <Labs>GIA</Labs> <Labs>HRD</Labs> <Labs>EGL_USA</Labs>
</LabCollection>
I would also try to remove EGL_USA because it is not supported as a lab in our system any more.
Eli
|
>> add a comment
|
Eli
9/18/2014 12:26:00 AM
|
|
|
Thanks, Eli. I use PHP/Nusoap to get the diamond list so i'm not sure the XML output you're talking about. I decided to code it in the different way and it works better for me.
Thanks for your help.
|
>> add a comment
|
L.N
9/19/2014 1:49:00 PM
|
|
|
if you use PHP, it may be easier to use the JSON services: http://technet.rapaport.com/Info/RapLink/Format_Json.aspx
|
>> add a comment
|
Leo
9/21/2014 1:10:00 AM
|
|