WCF Restful Https for a single method

1

I have a RESTful WCF that I'm using for a mobile application, I need a single method, the payment method, to use HTTPS, I do not want to enable HTTPS for the whole service because some methods return a large amount of data and it would be too heavy for a cell phone. It is possible? how?

I would like to know if you have any ownership or other way of allowing this method to be accessed only when using a secure connection ... Something like ...

[OperationContract]
[ExigirHTTPS(true)]
[WebInvoke(Method = "POST", UriTemplate = "/Disponibilidade", RequestFormat =     WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
DisponibilidadeRS Disponibilidade(DisponibilidadeRQ request);
    
asked by anonymous 04.04.2014 / 15:55

1 answer

1

IIS at least let both protocols (http, https) be enabled at the same time. If you have access to the server, one possibility, albeit not very elegant, is to use 'rewrite' url rules (http: /www.iis.net/downloads/microsoft/url-rewrite) that intercepts the specific url and directs to https. Then, clients can use http at will for the rest of the site.

    
06.04.2014 / 10:28