RapLink WebService

RapLinkWebService.RapNetInventoryLink webServiceManager =
new RapLinkWebService.RapNetInventoryLink();

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

//You must use the Init() method to get the parameter class.
RapLinkWebService.RapNetInventoryLinkParameters setPatams =
RapLinkWebService.Init();

Shapes[] MyShapes = new Shapes[1];
MyShapes[0] = Shapes.ROUND;
setPatams.ShapeCollection = MyShapes;

setPatams.MinSize = 2;
setPatams.MaxSize = 3;

setPatams.Markup = 120;

DataSet ds = webServiceManager.GetDiamonds(setPatams);