XML-RPC Response Format

To return the response in XML-RPC format, send a parameter "format" in the request with a value of "xmlrpc".

A simple call to the echo service returns this:

<?xml version="1.0" encoding="utf-8" ?>
<methodResponse>
	<params>
		<param>
			<value>
				<string>
					[escaped-xml-payload]
				</string>
			</value>
		</param>
	</params>
</methodResponse>

If an error occurs, the following is returned:

<?xml version="1.0" encoding="utf-8" ?>
<methodResponse>
	<fault>
		<value>
			<struct>
				<member>
					<name>faultCode</name>
					<value><int>[error-code]</int></value>
				</member>
				<member>
					<name>faultString</name>
					<value><string>[error-message]</string></value>
				</member>
			 </struct>
		</value>
	</fault>
</methodResponse>

You can see a demo response here.

You can find out more about XML-RPC at www.xmlrpc.com/.