Start of xmlrpc logic.