Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent access via browser
Message
General information
Forum:
ASP.NET
Category:
Windows Communication Foundation (WCF)
Environment versions
Environment:
C# 5.0
OS:
Windows 7
Network:
SAMBA Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01617170
Message ID:
01617173
Views:
37
>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.....
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform