【发布时间】:2026-02-01 14:20:05
【问题描述】:
如何反序列化我在 asp.net webservice 中作为 json 对象发送的这个字符串。
HttpClient client = new DefaultHttpClient();
HttpPost post = new HttpPost("http://server/NCO/webservice.asmx/GetNRIC");
post.setHeader("Content-type", "application/json");
post.setHeader("Accept", "application/json");
JSONObject obj = new JSONObject();
obj.put("ic", "s1111111b");
post.setEntity(new StringEntity(obj.toString(), "UTF-8"));
HttpResponse response = client.execute(post);
【问题讨论】:
标签: android asp.net web-services deserialization