Perl Tutorials - Herong's Tutorial Examples - Version 5.31, by Dr. Herong Yang
XML Messages over Socket Connections
This section describes the XML message communication model - where client and server send and receive XML messages over socket communication connections.
Once we know how to work XML strings and hashes, we can now look at how XML technology can be used in client and server communication.
The most primitive way of using the XML technology in client and server communication is to write a client program and a server program that send and receive XML messages with TCP socket communication over the Internet. The following diagram illustrates how this model works:
Client System Server System XML | Internet | XML Client Prog.<--->TCP|<-------------->|TCP<--->Server Prog.
To learn more about TCP socket communication, see the "Socket Communication" chapter of this book.
A sample server program and a sample client program are presented in sections below to show you how to use this communication model.
Table of Contents