I am using AFNetworking 2.0 and new to it. I tried a couple of WS test calls with success. We have a web service called and called:
This data parameter is an encrypted string.
Request: http://demo.XYZ.net/getlanguage // For example only
Parameters:
1) first you need to set json with a parameter, as shown below the dictionary in a string
{
param = {
pone = "com.xyz";
ptwo = 68208;
pthree = eda24e95f;
};
}
to
{"param":{"pone":"com.xyz","ptwo":"68208","pthree":"eda24e95f"}}
2) and then convert json string to base64encode
something like: eyJob21lIjp7InNGFlMGEzZDg1Mzg3YTNkYmFlZDQ5MzBiMCIsInNhbHQiOiI3OTU2IiwicGFj5uY19
3) and then convert the string to urlencode, and then send the encrypted string to "data" with the post method
eyJob21lIjp7InNpZ24iOiJiZmU4Y2RmZGEzZDg1Mzg3YTNkYmFlZDQ5MzBiMCIsInNhbHQi% 0AOiI3OTU2IiwicGFja2FnZSI6ImNvbS5uYmJ
, , , :
http://demo.XYZ.net/getlanguage?data= eyJob21lIjp7InNpZ24iOiJiZmU4Y2RmZGEzZDg1Mzg3YTNkYmFlZDQ5MzBiMCIsInNhbHQi% 0AOiI3OTU2IiwicGFja2FnZSI6ImNvbS5uYmJk
WS . [ "POSTMan-Chrome-Extension" ]
, AFNetworking 2.0? , , AFHTTPRequestOperationManager?