从HTTP POST请求中读取持续响应 [英] Read Continuous Response from HTTP POST request

查看:137
本文介绍了从HTTP POST请求中读取持续响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的位置服务需要http发布消息作为请求。因此,服务器将在一个时间间隔(例如每30秒)发送一个响应作为xml字符串。那么我应该使用哪种方法来完成它。在串行通信中,我们有像onDatareceived事件这样的选项并处理数据。我尝试使用webclient进行一个请求它可以工作,但是对于连续响应我应该使用哪种方法。

Am having a Location Service which requires a http post message as request. So the server will send the response in a time interval (say every 30 sec) as a xml string. So which method should i use to get it done. In serial communication we have option like onDatareceived event and process the data. i tried it with webclient for one request it would work but for continuous response which method should i use.

推荐答案

这篇关于从HTTP POST请求中读取持续响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆