Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prevent access via browser
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Windows Communication Foundation (WCF)
Titre:
Prevent access via browser
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:
01617170
Vues:
35
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
Regards,
Peter J. Kane



Pete
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform