How to deploy a web service that uses SSL?

Discussion in 'ASP.NET WebServices' started by geosync, Apr 13, 2009.

  1. I just had a laugh...I found an old post of mine from 2007, requesting info about this topic. I still don't have an approach. Surely someone else has accomplished this task.

    Could someone kindly give me some guidance on how to address this matter in the discountAsp.net environment? Here's my situation:

    - I have ONE .asmx file in a subfolder of my web application.
    - I want communciation with this service to require SSL.
    - I will use a SOAP header to receive creds for authentication.

    A problem that I encounter is the service consumer gets redirected to Login.aspx, not something that should happen for a web service. I understand why this happens, but don't know how to resolve it.

    Please help me. please please please.

    Thank you,
    Rick
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    this is most likely because your application is protected by form authentication. move your web service to another application should fix the problem.
     
  3. Hi Bruce, this makes sense.

    What about web.config in the new application folder? I don't know what the <authentication> section should look like.
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    with ASMX, you cannot use form authentication to protect it. If you are using IIS6, switch to windows authentication and remove anonymous permission with the permission manager in the control panel.
     

Share This Page