September 2005
Beginner
576 pages
13h 6m
English
Now that you have a Java class that will handle XML-RPC requests, you're ready to develop a server that waits for these requests to arrive, dispatching them to the handler.
The LottoServer class drives a simple web server that looks for these requests.
Apache XML-RPC has two core packages: org.apache.xmlrpc for applications and org.apache.xmlrpc for applications.
The WebServer class in org.apache.xmlrpc functions as a bare-bones XML-RPC server that listens on a specified TCP/IP Internet port:
int port = 4404; server = new WebServer(port);
The choice of port number 4404 is arbitrary; any port from 1,024 through 49,151 could be chosen.
By the wayThe Internet Assigned Numbers Authority, a group that decrees how ports ... |
Read now
Unlock full access