sir , i want to use webservice for "deletedlots".
you said we have to first login with HTTPS authentication.
//This must be done in HTTPS protocol webServiceManager.Login("myUser", "myPassword"); but above statements gives an error.
in webservice how can we use.
DiamondManager webServiceManager = new DiamondManager();
string URLAuth = "https://technet.rapaport.com/HTTP/Authenticate.aspx"; WebClient webClient = new WebClient();
NameValueCollection formData = new NameValueCollection();
formData["Username"] = "xxxxx"; formData["Password"] = "xxxxxxxxx"; byte[] responseBytes = webClient.UploadValues(URLAuth, "POST", formData); string ResultAuth = Encoding.UTF8.GetString(responseBytes); webClient.Dispose(); above coding gives me ticket. but main question is where to use that ticket in webservice ?
DiamondManager webServiceManager = new DiamondManager(); webServiceManager.Login("myUser", "myPassword");
|