dcsimg
Consume XML Push Data Feed on Open Channel
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Amy_Nby
Posted On:   Monday, October 17, 2011 06:23 AM

Hello, I am looking for some example code and/or utility library for consuming an XML push data feed over http. I already know how to consume and parse a basic XML feed using XStream and STax. That is - I can send an XML request over http, get an xml response back and process it. However, I have an option to subscribe to a data feed. The connection is kept open and the server pushes any new data onto the channel. I then need to process any data as it becomes available. I can probably figure it out on my own, but it is always better to see some examples. I thought that this kind of data-feed-subscription would be fairly common. But I can't seem to find any examples. Maybe I a   More>>

Hello,




I am looking for some example code and/or utility library for consuming an XML push data feed over http.



I already know how to consume and parse a basic XML feed using XStream and STax. That is - I can send an XML request over http, get an xml response back and process it.



However, I have an option to subscribe to a data feed. The connection is kept open and the server pushes any new data onto the channel. I then need to process any data as it becomes available.



I can probably figure it out on my own, but it is always better to see some examples. I thought that this kind of data-feed-subscription would be fairly common. But I can't seem to find any examples. Maybe I am just searching on the wrong key words?



I would appreciate it if anyone knows of a framework/utility and/or example code for consuming a push xml data feed over http.



Thanks.

   <<Less

Re: Consume XML Push Data Feed on Open Channel

Posted By:   Anonymous  
Posted On:   Tuesday, October 25, 2011 07:40 AM

HTTP push is not really quite as defined a term and there are several ways to do it. The best approach is to use appropriate client (be it comet, web-sockets, HTTP streaming or whatever) and see what kind of interface it provides. There will probably be an easy way of connecting you existing XML parser to it.
About | Sitemap | Contact