Example XML for XMLRPC request

POST /RPC2 HTTP/1.1

User-Agent: Tomcat Web Server/3.1 Beta (Sun Solaris 2.6) Host: newInstance.com Content-Type: text/xml Content-length: 234

<?xml version="1.0"?> <methodCall>

<methodName>hello.sayHello</methodName> <params> <param>

<value><string>Brett</string></value> </param> </params> </methodCall>

The XML-RPC libraries on the server receive this and decode it, matching it with a handler method (if one is available that matches). The requested Java method is then invoked, and the server encodes the result back into XML, as shown in Example 11-11.

0 0

Post a comment

  • Receive news updates via email from this site