Instead, the program enters a while loop waiting for new connections. The Linux box on which this script is executing answers many IP addresses. The heart of the XML-RPC listener is the methods attribute that points to an anonymous hash that maps the API procedure name to a reference of a real Perl subroutine that will perform the required work. We might want to perform error checking for production code. With XML-RPC, you not only create a gateway for remote users to access your application, but you also give them the freedom to do so with whatever language they want to use.
Many Web sites require users to log in with account names and passwords.
Next time, we will create a Web service that shields front end PHP code from the back end MySQL system in which the account information is stored. Resources Read part two of this series, XML-RPC Middleware . Dave Winer, who created the Frontier library, runs the Userland community. Eric S. Raymond made an interesting note regarding how XML-RPC follows the traditional Unix programming methodology. Get the expat source code from SourceForge.