Question : How do you secure a C# Web Service

Hi everyone,

I am wanting ideas on how to secure a webservice. Basically we have a software activations webservice that applications we create talk to to verify the user's licence key and activate the software. However if anyone were to discover the web address to the service (which isnt really that hard seeing .net stores it in a plain text config file) they would be able to interact with our activations server.

I guess in a situation where you know that the service will only be visible from a few locations you could lock IIS down to a few IP Addresses but in this situation we are expecting connections from anywhere.

Can anyone offer some advice?

thanks,

Xavier,

Answer : How do you secure a C# Web Service

I would look into Web Services Enhancements (WSE).  There are a few resources, like these that should help you get a start securing a web service with WSE.

An introduction to Web Service Security using WSE - Part I
http://www.codeproject.com/KB/webservices/WS-Security.aspx

Protect Your Web Services Through The Extensible Policy Framework In WSE 3.0
http://msdn.microsoft.com/en-us/magazine/cc163650.aspx
Random Solutions  
 
programming4us programming4us