Hi,
I have smp server url and added one application in that application backend is having one web service. if i hit that smp server url it will return the meta data of the service. The issue is we need to add certification for that server via code and need to get resposne from that via http client.
Please find the code below
var client = new SAP.Net.Http.HttpClient(new HttpClientHandler { Credentials = new NetworkCredential("Server username", "server Password), ClientCertificateOptions = ClientCertificateOption.Automatic, UseProxy = false }, true); var response = await client.GetAsync("server ip:Portno/application name");
When sending this request to http i am geting "The server committed a protocol violation. Section=ResponseStatusLine" this issue. I installed certificate in machine and also in application.
Please let me know how to fix this.