这是从netConnection.Call读取响应的类:
public class getCompleteParkOfUser : IPendingServiceCallback
{
public void ResultReceived(IPendingServiceCall call)
{
object result = call.Result;
MessageBox.Show("Server response: " + result);
ArrayCollection items = result as ArrayCollection;
foreach (object item in items)
{
MessageBox.Show("");
}
}
}
结果很好:http://scr.hu/0tgp/6yxdi 但结果不会保存为ArrayCollection: http://scr.hu/0tgp/ovghm 实际上,我无法阅读回应。
响应/请求是AMF
答案 0 :(得分:0)
试试这个..
object item = call.Result;
IEnumerable enumerable = (IEnumerable)item;
foreach (object element in enumerable)
{
// do something with element
}