quest4tech.net

 

Processing XML-RPC in Java

XML-RPC is a remote procedure call (RPC) protocol which uses XML to encode its calls and HTTP as a transport mechanism. The following process occurs when a client communicates with a server using the XML-RPC protocol, both the server and client are programmed in Java.
  1. The client executes the Java code that calls the remote code on the server. The Java code should be in the format:
      Object result = myClient.execute("T1Server.method", argList);
     
  2. Executing this code on the client sends an HTTP message to the server.
     
  3. The message payload contains XML-RPC code that identifies the method and arguments to be executed on the server.
     
  4. Executing the remote code on the server and generates a return XML-RPC message. This message will contain either the result of the exection or an error code. The error code may for example indicate that the method cannot be found.
     
  5. If the return message contains the result of executing the method on the server, an object will be returned. This object is then processed by one or more functions on the client. The object is shown in the example code in (1) above.


To add an entry or comment on the article, please fill in the comments form


Return to Top

Main Index


(c) Created by B V Wood.

 Main Index
 Comments

UK SPONSERS

 
USA SPONSERS