Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] reading an xml from a socket

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Wolfgang Hoschek <wolfgang.hoschek AT mac.com>
  • To: Steve Loughran <steve.loughran AT gmail.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] reading an xml from a socket
  • Date: Sat, 21 Oct 2006 11:07:06 -0700


As an aside, SOAP uses HTTP's own packaging options, which are, 'send
content-length header' or 'end the transmission after the message is
sent. The former requires you to know the message length in advance
(which forces you to buffer rather than stream XML to the socket), the
latter does not reliably distinguish between legitmate end of
transmission, and network failure. Fortunately, the XML parser picks
it up for you. That is, unless a proxy server gets involved...


In the HTTP context, chunked transfer encoding is often used, which partitions an arbitrarily large message into smaller chunks, in a streaming manner. This avoids having to know the message length in advance, yet enables the recipient to verify that it has received the full message. See http://www.w3.org/Protocols/rfc2616/rfc2616- sec3.html#sec3.6.1

Wolfgang.




Archive powered by MHonArc 2.6.24.

Top of Page