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



string FileContent = @"StockNumber,Shape,Weight,Color,Clarity" +
Environment.NewLine + "1234,Round,1.0,E,VVS1"; //CSV format

DiamondManager webServiceManager = new DiamondManager();

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

UploadLotsParameters uploadManager = new UploadLotsParameters();

//indicates if the first row in the file contains headers
uploadManager.FirstRowHeaders = true;
uploadManager.LotList = FileContent;

//indicates the format file
uploadManager.LotListFormat = LotListFormatTypes.Rapnet;

//indicates if to replace the this upload or to add it to the existing inventory
uploadManager.ReplaceAll = true;

webServiceManager.UploadLots(uploadManager);

//get your entire inventory in RapNet
GetLotsResult lots = webServiceManager.GetLots();