FileDocCategorySizeDatePackage
XmlRpcAsynchClientPlugin.javaAPI DocExample2091Sun Jan 12 23:37:36 GMT 2003com.wiverson.macosbook.webservices

XmlRpcAsynchClientPlugin

public class XmlRpcAsynchClientPlugin extends Object implements com.wiverson.macosbook.SimpleEditPlugin

Fields Summary
Constructors Summary
public XmlRpcAsynchClientPlugin()

    
Methods Summary
public voidcallRemote(com.wiverson.macosbook.SimpleEdit frame)

        try
        {
            org.apache.xmlrpc.XmlRpcClient xmlrpc = new org.apache.xmlrpc.XmlRpcClient("http://localhost:9000/MiniServer");
            java.util.Vector params = new java.util.Vector();
            AsynchTimeHandler myAsynchTimeHandler = new AsynchTimeHandler(frame);
            xmlrpc.executeAsync("MiniServer.now", params, myAsynchTimeHandler);
        } catch (java.net.MalformedURLException e1)
        {
            e1.printStackTrace();
        } catch (java.io.IOException e2)
        {
            e2.printStackTrace();
        }
    
public voiddoAction(com.wiverson.macosbook.SimpleEdit frame, java.awt.event.ActionEvent evt)

        this.callRemote(frame);
    
public java.lang.StringgetAction()

        return "Test Async XML-RPC";
    
public voidinit(com.wiverson.macosbook.SimpleEdit frame)

    
public static voidmain(java.lang.String[] args)

        System.out.print("Calling asynch...");
        new XmlRpcAsynchClientPlugin().callRemote(null);
        System.out.println("ok...");