views:

9

answers:

0

Context
I'm working a c# module which is responsible to integrate our business with an external entity as part of our SOA system. The external entity provides web services. They're a throughly tested as it is a federal government product.
The module has been developed using test-driven approach, we use nUnit and everything was fine during test.

Security
Public certificates is basic requirement to connect to the web services. The following line is used: X509Certificate.CreateFromCertFile("Application.cer");

Problem
During test, the remote web service was succesfully connected and business rules were throughly tested. Requirements demanded that this module should be used as a windows service application. After deployment, the remote web service calls results in "HTTP status 403: Forbidden". Seems that coding is not an issue as the same module works fine within nUnit environment and only doesn't work within Windows Service.

Development Environment
- Windows XP - Vistual Studio 2008 - Nunit - C#

Already been tried
1. Running the Windows Service impersonated by a local administrator account.
2. Add the program to exception list on windows firewall.

Thanks