Rapaport
Diamonds.Net RapNet.com Rapaport Auctions Fair Trade More
Login Register
Rapaport - TechNet
How to
About
Community
Downloads
Rapaport online
  RapLink code samples and helpful tips
Other code samples:



To run this web service you have the following two options

First option:
RapLinkInventoryPlusWebService.RetailFeed webServiceManager =
new RapLinkInventoryPlusWebService.RetailFeed();

//This must be done in HTTPS protocol
webServiceManager.Login("MyUser", "MyPassword");

//After log in you will receive a encrypted ticket with your credentials. This will be used to authenticate your session.
//Now you can choose to change the protocol to HTTP so it works faster.

webServiceManager.Url = "http" + webServiceManager.Url.Substring(5);

int DiamondCount;

DataTable dt = webServiceManager.GetDiamonds(
webServiceManager.Shapes.ROUND,
0.2, 15.3, //size From - To
webServiceManager.Colors.D, webServiceManager.Colors.K, // Color From - To
webServiceManager.Clarities.IF, webServiceManager.Clarities.VVS2, // Clarity From - To
webServiceManager.Cuts.EXCELLENT, webServiceManager.Cuts.VERY_GOOD,// Cut From - To
100, 150000, // Price From - To
2, 20, //Page, Results in page
ref DiamondCount);


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


Second option:
RapLinkInventoryPlusWebService.RetailFeed webServiceManager =
new RapLinkInventoryPlusWebService.RetailFeed();

//This must be done in HTTPS protocol
int DiamondCount;

DataTable dt = webServiceManager.GetDiamondsSecure(
"MyUser", "MyPassword",
webServiceManager.Shapes.ROUND,
0.2, 15.3, //size From - To
webServiceManager.Colors.D, webServiceManager.Colors.K, // Color From - To
webServiceManager.Clarities.IF, webServiceManager.Clarities.VVS2, // Clarity From - To
webServiceManager.Cuts.EXCELLENT, webServiceManager.Cuts.VERY_GOOD,// Cut From - To
100, 150000, // Price From - To
2, 20, //Page, Results in page
ref DiamondCount);


To get the grading certificate: If HasCertFile=true then you can use the one following urls: