Allowing access to a web service only via SSL

From: Craig HB (CraigHB_at_discussions.microsoft.com)
Date: 11/24/04


Date: Wed, 24 Nov 2004 15:03:02 -0800

I have a web service that I only want users to access via SSL. I am looking
for a way to test whether the client is using https and not http.

I was told that I could this with : if
request.servervariables("server_port") = 443 then. But the code is in a .asmx
page and it doesn't recognise the request object.

Any help would be appreciated,
Craig



Relevant Pages

  • Re: SSL question
    ... It has some methods which are accessible by some client applications. ... I have developed this web service with the use of SSL in my head, ... > SSL will encrypt this information. ...
    (microsoft.public.inetserver.iis.security)
  • RE: SoapException - NullReferenceException
    ... As for webservice over SSL, there does exists some common issue such as the ... client certificate supplyment(if you've configured it to require client ... Microsoft MSDN Online Support Lead ... I have a web service running on an SSL connection and unfortunately I ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: WSE and SSL
    ... Adding ssl support has nothing to do with web service implementation. ... All you need to do is get a valid certificate and change the settings in IIS to make the web application use ssl. ... the calling application requests using HTTP. ... Are there any examples/sample codes that would implement like a Hello World service in HTTPS? ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: An unexpected error occurred on a send
    ... Windows Client?), so the first issue may not be the problem, but firstly, ... the COM component must be called from a STA thread, while your Web Service ... App you are calling the Web Service from, to see if it cures the problem. ... > Protocol: SSL. ...
    (microsoft.public.dotnet.framework.webservices)
  • RE: WebException while calling Web Service over HTTPS...
    ... I verified that the Web Service is using SSL version 3 Certificates. ... I can't get any details on their server envirnoment due to ... suggest that the SSL Session between the client and the server was ...
    (microsoft.public.dotnet.framework.aspnet.webservices)