> I am looking for samples to transmit small size xml documents over tcp
> sockets.
>
> Does anyone have some good working samples?
Socket
getOutputStream
write
and
ServerSocket
accept
Socket
getInputStream
read
should be very simple to implement.
Arne
Alex.From.Ohio.Java@gmail.com - 15 Mar 2008 02:03 GMT
> > I am looking for samples to transmit small size xml documents over tcp
> > sockets.
[quoted text clipped - 16 lines]
>
> Arne
Correct but opposite. You should start server first then the client.
Alex.
http://www.myjavaserver.com/~alexfromohio/index.jsp
Arne Vajhøj - 15 Mar 2008 02:28 GMT
>>> I am looking for samples to transmit small size xml documents over tcp
>>> sockets.
[quoted text clipped - 14 lines]
>
> Correct but opposite. You should start server first then the client.
The above are hints to source code in the form of class names and
method names.
It was not really intended to indicate how they should be run. If so
I would have had to make them in two columns.
Arne
On Fri, 14 Mar 2008 17:21:29 -0700 (PDT), A K
<abdul_n_khan@hotmail.com> wrote, quoted or indirectly quoted someone
who said :
>I am looking for samples to transmit small size xml documents over tcp
>sockets.
XML is just text. You would typically read a small document as a
piece then analyse it later. So almost identical code to fetching an
HTML document will get you an XML document.
see http://mindprod.com/jgloss/http.html
for samples.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com