Here is class to read response from 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("");
}
}
}
result is good: http://scr.hu/0tgp/6yxdi but result won't be saved as ArrayCollection: http://scr.hu/0tgp/ovghm In effect i can't read response.
Response/Request is AMF
Try this..
object item = call.Result;
IEnumerable enumerable = (IEnumerable)item;
foreach (object element in enumerable)
{
// do something with element
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.