2
Reply

how to implement security in webservice in asp.net

Ravi Kumar

Ravi Kumar

Oct 18, 2010
6.1k
0

    This is one of the most confusing ASP.NET interview question and very less developers are aware of the answer.

    Webservice runs in the context of IIS and ASP.NET runtime. So you can apply all the security methodologies which you do for ASP.NET i.e. windows , passport and forms.

    My 50 .NET Interview questions

    Shivprasad
    February 06, 2011
    0

    I need to build a simple webservice to get data in and out of a HR System over the Internet. I am using IIS and ASP.Net with .Net 2.0.

     

    SoapHeaders over SSL:

    Post the UID/PWD in a Soap header and implement a SOAP extension. Pretty straightforward to implement and should be quite secure over SSL. This is by far my preferred option due to the relative simplicity. Also, for historical reasons, I will need to consume the webservice from VBScript of all things, so the ability to just deal with simple SOAP is a bonus.

    Using WCF with TransportWithMessageCredential:

    Jiteendra Sampathirao
    November 11, 2010
    0