Read XML from a constant data stream

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LD50
    New Member
    • Aug 2007
    • 2

    #1

    Read XML from a constant data stream

    I have an IP for a page that is constantly outputting XML data pertaining to
    our phone system. I am using C# with ASP.NET, and I need to just get the
    first XML structure, which starts with

    ~!ACDXML <?xml version="1.0" encoding="UTF-8" standalone="yes "?>
    <ACD Name = "Box Office" Status = "Open">

    and ends with </ACD>

    then it repeats again.

    Here is one attempt I have tried so far:

    HttpWebRequest req = (HttpWebRequest )WebRequest.Cre ate("http://192.168.55.9:10 24");
    HttpWebResponse resp = (HttpWebRespons e)req.GetRespon se();


    At the GetResponse I receive the following error:

    The underlying connection was closed: The message length limit was exceeded.

    I tried to implement the AddRange method as well, but received the same error.
  • LD50
    New Member
    • Aug 2007
    • 2

    #2
    Nevermind. I found a way to do it. Thx.

    Comment

    Working...