Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2008

Tip: Looking for answers? Try searching our database.

xml + sockets in java

Thread view: 
A K - 15 Mar 2008 01:21 GMT
I am looking for samples to transmit small size xml documents over tcp
sockets.

Does anyone have some good working samples?

Regards,
Arne Vajhøj - 15 Mar 2008 01:37 GMT
> 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
Roedy Green - 15 Mar 2008 05:01 GMT
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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.