Creating an XML-RPC Client
An XML-RPC server can be called over the Internet, over a network, or within a single computer. Any web server that has a URL, a unique web address, can be accessed with the protocol.
The LottoClient class will extend XML-RPC functionality to LottoMadness, the lottery-testing application created in Hour 15.
A client can be implemented with either the XmlRpcClient class in the org.apache.xmlrpc.applet package (for applets) or the SimpleXmlRpcClient class in org.apache.xmlrpc.applet (for other classes).
The reason to split them in this manner is security. Applets run a restricted environment that prohibits some capabilities of the Java language, such as making network connections to any computer other than the one hosting ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access