Examples of XmlRpcClient


Examples of com.dbxml.xmlrpc.XmlRpcClient

            if ( connection.equals(SECURE) ) {
               baseURI ="https://" + host + ":" + port + "/xmlrpc";
               client = new SecureXmlRpcClient(baseURI + clientPath);
            }
            else
               client = new XmlRpcClient(baseURI + clientPath);
         }
         else
            client = new XmlRpcClient(baseURI + clientPath);

         String user = getProperty(dbXMLClient.USER);
         if ( user == null )
            user = getProperty(dbXMLClient.ALT_USER);
View Full Code Here

Examples of com.flaptor.util.remote.XmlrpcClient

     * @param port the port where the XmlSearcher is running on.
     */
    public XmlIndexerClient(final String host, final int port) {
        final String url = "http://" + host + ":" + port;
        try {
            xmlrpc = new XmlrpcClient(new URL(url));
        } catch (MalformedURLException e) {
            throw new IllegalArgumentException("Invalid url: " + url
                    + ". Check host and port parameters.");
        }
    }
View Full Code Here

Examples of com.flat502.rox.client.XmlRpcClient

        // In case this is a remote url, let the discoverer work.
        if (this.remoteAPIDiscoveryUtil.isDiscoveryURI(url)) { return this.remoteAPIDiscoveryUtil.getRemoteProxy(url, remote); }

        try {
            final String prefix = url.getPath().substring(1) + ".";
            final XmlRpcClient client = new XmlRpcClient(url.toURL());
            return (R) client.proxyObject(prefix, remote);
        } catch (final IOException e) {
            e.printStackTrace();
        } catch (final Exception e) {
            e.printStackTrace();
        }
View Full Code Here

Examples of de.dfki.util.xmlrpc.client.XmlRpcClient

    {
        final Object apiClient = Proxy.newProxyInstance( Thread.currentThread().getContextClassLoader(),
                                                         new Class[]{ XmlRpcClient.class, apiClass },
                                                         new ClientInvocationHandler( new StandardXmlRpcClient() ) );

        final XmlRpcClient asClient = (XmlRpcClient)apiClient;
        asClient.setConnection( xmlRpcConnection );
        asClient.setHandlerName( handlerName );
       
        ParameterConverterRegistry.readParameterConverterMappingsFromApiClass( apiClass );

        return( apiClass.cast( apiClient ) );
    }
View Full Code Here

Examples of helma.xmlrpc.XmlRpcClient

                             Vector params)
        throws TurbineException
    {
        try
        {
            XmlRpcClient client = new XmlRpcClient ( url );
            return client.execute(methodName, params);
        }
        catch (Exception e)
        {
            throw new TurbineException("XML-RPC call failed", e);
        }
View Full Code Here

Examples of org.apache.xmlrpc.XmlRpcClient

        RhinoCore core = RhinoCore.getCore();
        Scriptable retval = null;

        try {
            retval = Context.getCurrentContext().newObject(core.getScope());
            XmlRpcClient client = new XmlRpcClient(url);

            int l = args.length;
            Vector v = new Vector();

            for (int i = 0; i < l; i++) {
                Object arg = core.processXmlRpcResponse(args[i]);
                v.addElement(arg);
            }

            Object result = client.execute(method, v);
            // FIXME: Apache XML-RPC 2.0 seems to return Exceptions instead of
            // throwing them.
            if (result instanceof Exception) {
                throw (Exception) result;
            }
View Full Code Here

Examples of org.apache.xmlrpc.XmlRpcClient

                             Vector params)
            throws TurbineException
    {
        try
        {
            XmlRpcClient client = new XmlRpcClient(url);
            return client.execute(methodName, params);
        }
        catch (Exception e)
        {
            throw new TurbineException("XML-RPC call failed", e);
        }
View Full Code Here

Examples of org.apache.xmlrpc.XmlRpcClient

                                          Vector params)
            throws TurbineException
    {
        try
        {
            XmlRpcClient client = new XmlRpcClient(url);
            client.setBasicAuthentication(username, password);
            return client.execute(methodName, params);
        }
        catch (Exception e)
        {
            throw new TurbineException("XML-RPC call failed", e);
        }
View Full Code Here

Examples of org.apache.xmlrpc.XmlRpcClient

        return( connect( new URL( urlAsString ) ) );
    }
   
    public static XmlRpcConnection connect( URL url )
    {
        XmlRpcClient connClient = new XmlRpcClient( url );
        return ( new XmlRpcConnection( connClient ) );
    }
View Full Code Here

Examples of org.apache.xmlrpc.XmlRpcClient

            throw new XMLDBException(ErrorCodes.VENDOR_ERROR, "Xerces needed", e);
        }
    
        try {
           
            client = new XmlRpcClient(xmlrpcURI);
           
            /* Just check the collection does actually exist */
            Hashtable params = new Hashtable();
            params.put(RPCDefaultMessage.COLLECTION, collPath);
            String exists =
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.