【发布时间】:2015-12-07 16:45:54
【问题描述】:
我有多个值要从 android 发送到 DotNet Webservice。
所有值都存储在数组中。
Dotnet 方法代码:
[WebMethod]
[ScriptMethod(UseHttpGet = true, ResponseFormat = ResponseFormat.Json)]
public void setApprovedEmp(string[] arrCheckedEmpIds)
{
// Use array here.
}
Android 代码:
String[] arrIds = { "1009", "1001", "1012" }; // Array data is dynamic, not fix size
parameters.add(new BasicNameValuePair("arrCheckedEmpIds", arrIds));
【问题讨论】:
标签: android asp.net web-services