>Hi all, I'm following a tutorial which creates a WCF RESTFUL service which returns JSON data and consumes it from an Android app, a concern I have is , users can enter a URL such as
>
>http://mysite.com/myservice.svc/mymethod
>
>
>and see the raw data, is there a way that *I* can access it programmatically but prevent others from browsing to it ?, this is how the tutorial set the service up.
>
>[ServiceContract]
> public interface IPersonService
> {
> [WebGet(UriTemplate="/personsdataJSON",
> ResponseFormat=WebMessageFormat.Json)]
> [OperationContract]
> List GetPersonsDataJSON();
> }
>
>
>many thanks
AFAICS only by requiring authorization. See
https://msdn.microsoft.com/en-us/library/ff405740.aspx for options.....