0

这是从 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

4

1 回答 1

0

尝试这个..

object item = call.Result;
IEnumerable enumerable = (IEnumerable)item;
foreach (object element in enumerable)
{
    // do something with element
}
于 2013-09-26T09:12:50.357 回答