Rapaport - TechNet
How to
About
Community
Downloads
Rapaport online
  Rapaport Prices code samples and helpful tips
Other code samples:



RapPricesWebService.RapaportPrices webServiceManager = new RapPricesWebService.RapaportPrices();

//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);

//GetPrice() Function
RapPricesWebService.RapaportPrice RapPriceClass = webServiceManager.GetPrice("Round", 0.4f, "D", "VS1");

decimal price = RapPriceClass.price;
decimal high_size = RapPriceClass.high_size;
decimal low_size = RapPriceClass.low_size;
DateTime date = RapPriceClass.Date;

//GetPriceSheet() Function
RapPricesWebService.RapaportPriceSheet RapPriceSheetDataSet =
webServiceManager.GetPriceSheet(TechnetSamples.RapPricesWebService.Shapes.Round);

DateTime date_ps = RapPriceSheetDataSet.Date;
string shape_ps = RapPriceSheetDataSet.Shape;

DataSet ds = RapPriceSheetDataSet.Prices;

foreach(DataRow dr in ds.Tables[0].Rows)
{
string clarity_ps = dr["Clarity"].ToString();
string color_ps = dr["Color"].ToString();
decimal low_size_ps = Convert.ToDecimal(dr["LowSize"]);
decimal high_size_ps = Convert.ToDecimal(dr["HighSize"]);
decimal price_ps = Convert.ToDecimal(dr["Price"]);
}