c# Soap Web service header
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hello folks, I have a problem (as well as with the English language ^ __ ^) with a web service that I have already created and works fine. Now I have to add a header that contains an ssl certificate (.cer) but do not know how to do. Can anyone help? Place below the important part of the code. Thank you all! BasicHttpBinding myBinding = new BasicHttpBinding(); myBinding.Security.Mode = System.ServiceModel.BasicHttpSecurityMode.TransportWithMessageCredential; myBinding.Security.Message.ClientCredentialType = BasicHttpMessageCredentialType.Certificate; Uri cUri = new Uri("https://Service?wsdl");//reserved data EndpointAddress ea = new EndpointAddress(cUri); CVPClient client = new CVPClient(myBinding, ea);