开发者

Simple but effective security for iOS to ASP.NET JSON service?

I am developing an iPhone application that GETS data from my ASP.NET web service that returns serialized JSON strings. My method is as follows:

[WebMethod(Description = "Set GPS Location")]
[ScriptMethod(UseHttpGet = true, ResponseFormat = ResponseFormat.Json)]
public string SetGPS(int userId, double lat, double lng)
{
    ...
    return cord.SerializeToJson();

}

Ignoring my temporary anti-pattern of returning a string, what would be a simple, but effective way to provide a security mechanism to ensure that communication between the client and server is secure?

I feel a bit at a loss in my transport to the iPhone and I don't know w开发者_如何学JAVAhere to start.


HTTPS

How to use HTTPS in an ASP.Net Application

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜