开发者

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

开发者 https://www.devze.com 2023-02-23 18:54 出处:网络
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:

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

精彩评论

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