tags:

views:

63

answers:

2

Hi!

Is it possible to require user name and password for a web service without changing the code for existing web service?

Adding a DLL and configuration would be OK, but I rather not change the web service.

A: 

Simplest way is to let IIS protect the folder where the web service resides. No code change required.

Rosdi
Does that work cross platform?
Henrik
+1  A: 

Use (Windows - Integrated Windows) in IIS this is the only way to apply authentication without changing a single bit of code. Here is the article also contains other options as well.

http://msdn.microsoft.com/en-us/library/w67h0dw7.aspx

Shoaib Shaikh