I'm creating a Web application to consume a third party Web Service. The third party provide me a Security Certificate and I can get their wsdl successfuly in the browser by using it.
Before I start, I created a Unit Test to consume the web service with the certificate provided, and it works fine.
I've also create a Console application to consume the web service (same code), and again it works fine.
The problem is, I created a Web application (ASP .NET 2.0 in IIS) but it fails. The thrid party said I didn't add the client certificate in the Web service call. But I'm using the same code as the Unit Test and the Console application I developed.
Background: The web application has impersonate="true" and we are using Integrated Windows Authentication. We have a Web proxy in our company and we need go go through it to Internet.
The code I use is below, I believe the code is fine as it works in Unit Test and in the Console app.
this.BuySideService = new FXBuySideServiceV1();
// preserve cookies for auth info (SMSESSION)
this.BuySideService.CookieContainer = new System.Net.CookieContainer();
// basic authentication
this.BuySideService.Credentials = new System.Net.NetworkCredential(this.LoginUsername,
View Complete Post