I'm creating a Web application to consume a third party Web service. The third party has provided me a Security Certificate and I can use it to see their WSDL in Browser successfully.
I've created a Unit Test to consume the web service with the client certificate and it works fine.
I've also create a Console application to consume the web service, and again it works fine.
The problem is, I created a Web application (ASP .NET in IIS) to consume the web service, and it fails. The party said I didn't send the Client Certificate in the Web Service call. But the code I use is the same as the one running in the Unit Test and Console application.
Background: The Web Application has impersonate="true" and we are using Integrated Windows Authentication. Also we have a Web Proxy in our company to go out to internet.
Below is the code I'm using. I believe the code is fine as it works in some cases except in ASP .NET (IIS).
this.BuySideService = new FXBuySideServiceV1();
// preserve cookies for auth info (SMSESSION)
this.BuySideService.CookieContainer = new System.Net.CookieContainer();
// basic authentication
this.BuySideService.Credentials = new System.
View Complete Post