public void weserviceUploadDelete() { DiamondManagerSoapClient webServiceManager = new DiamondManagerSoapClient(); AuthenticationTicketHeader ticket = webServiceManager.Login("UserName", "password"); UploadLotsParameters uploadManager = new UploadLotsParameters(); DeleteLotParameters d = new DeleteLotParameters(); d.FieldValueList = "aa-s"; d.ByField = ByFieldTypes.StockNum; var ressult = webServiceManager.DeleteLots(ticket, d); } public void weserviceUploadUpdate() { DiamondManagerSoapClient webServiceManager = new DiamondManagerSoapClient(); //This must be done in HTTPS protocol AuthenticationTicketHeader ticket = webServiceManager.Login("username", "password"); UploadLotsParameters uploadManager = new UploadLotsParameters(); UpdateLotParameters u = new UpdateLotParameters(); Lot Diamond = new DiamondManager.Lot(); u.ByField = ByFieldTypes.RapnetLotID; u.FieldValue = "68624099"; Diamond.CertificateID = "3454565456"; Diamond.Lab = "GIA"; Diamond.Color = "E"; Diamond.Clarity = "IF"; Diamond.Weight = new decimal(4.4); Diamond.Shape = "Pear"; u.Lot = Diamond; var ressult = webServiceManager.UpdateLot(ticket, u); }
|