I am hosting the Web Service using Apache Tomcat on my development machine (localhost). The web service requires the use of certificates to verify who is calling it. I have created the certificates (one client and one server) using Java's keytool.exe tool. I have installed both certificates into the "TrustedPeople" store and I have place the certificates into the folder where the web application is expecting them to be (according to the instructions).
Even though I have dabbled in consuming web services I've never had to use certificates before. As far as I can tell, the only way that I can use this certificate with the proxy class is to use the proxyClient.ClientCredentials.ClientCertificate property.
So I have the following code:
Expand|Select|Wrap|Line Numbers
- proxyClient.ClientCredentials.ClientCertificate.SetCertificate(StoreLocation.CurrentUser, StoreName.TrustedPeople, X509FindType.FindByIssuerName, "theName")
An error was discovered processing the <wsse:Security> headerDoes anyone know how to get around this problem?
Am I missing something?
What do I have to do to get this to work?
Thanks,
-Frinny