See ../README for a generic (and recommended) XMLRPC demonstration.

See as well:   http://xmlrpc-c.sourceforge.net/xmlrpc-howto/xmlrpc-howto.html

To run this demo do the following:


- Make sure to have the following set in your $HOME/xmlBlaster.properties file:

   ProtocolPlugin[XMLRPC][1.0]=org.xmlBlaster.protocol.xmlrpc.XmlRpcDriver
   CbProtocolPlugin[XMLRPC][1.0]=org.xmlBlaster.protocol.xmlrpc.CallbackXmlRpcDriver

  This loads XmlRpc support into xmlBlaster.


- Start xmlBlaster:

     java org.xmlBlaster.MainGUI

  or

     java org.xmlBlaster.Main


- Start the xml-rpc client from this directory

     java javaclients.xmlrpc.XmlRpcHttpClientRaw  -dispatch/connection/plugin/xmlrpc/hostname myHostName  < demo.xml

  Type your host name instead of 'myHostName',
  where the xmlBlaster xmlrpc server is listening.


NOTE: The client sends the data from demo.xml


NOTE: There is are helper class in src/java/org/xmlBlaster/client/protocol/xmlrpc
      which Java clients can use.
      It wraps the 'low level' xml-rpc invocation.
      You can switch all our demos to run with XMLRPC instead of CORBA or RMI as follows:

       java -cp lib/xmlBlaster.jar javaclients.ClientSub -dispatch/connection/protocol XMLRPC

NOTE: https should work as well (see xmlrpc mailing list):
    You may install SUN JSSE (or used another product, because this one is only a proof of
    concept)
    and execute the following lines before using the helma.xmlrpc.XmlRpcClient.
    These system properties can also be set on the command line,
    without having to modify your application
    (the requiered jar files must have been added to your classpath, refer to the product
    installation)

      System.setProperty("java.protocol.handler.pkgs",
      "com.sun.net.ssl.internal.www.protocol");
      System.setProperty("javax.net.ssl.keyStore",         pathToMyKeyStore);
      System.setProperty("javax.net.ssl.keyStorePassword", myKeyStorePassword);


enjoy it !

Michele (laghi@swissinfo.org)
