Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prevent access via browser
Message
Information générale
Forum:
ASP.NET
Catégorie:
Windows Communication Foundation (WCF)
Versions des environnements
Environment:
C# 5.0
OS:
Windows 7
Network:
SAMBA Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01617170
Message ID:
01617173
Vues:
36
>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.....
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform