Recommendations for .NET Web Service Format/Protocol for Android, iPhone, etc. integration

后端 未结 4 1735
夕颜
夕颜 2021-02-15 16:22

I am building a web service for my ASP.NET MVC 3 website. Ideally I would like all clients (my web pages, iphone application, android application, windows phone 7 application, e

4条回答
  •  一向
    一向 (楼主)
    2021-02-15 17:09

    I have almost same situation and what am I doing is, I am making WCFrest services for android and iphone.

    In terms of the security, I am using role based membership provider. So i have created a user for the mobile clients with the role of 'Mobile clients' and give the user id (guid) as an 'api key' to the android and iphone developer.

    The iphone and android developer has to send the 'api key' in the header of the request.

    so before executing any method in my wcf, i am checking the api key and also checking if the request is from an android or iphone device.

    I hope this will help you a little to plan your development..:)

提交回复
热议问题