Examples of invokeBlocking()


Examples of org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking()

     
        ArrayList args = new ArrayList();
        String hello = "hello";
        args.add(hello.getBytes());

        OMElement response = sender.invokeBlocking(new QName("http://rpc.axis2.apache.org", "testByteArray", "req"), args.toArray());
        assertEquals(response.getFirstElement().getText(), hello);
    }

    //
View Full Code Here

Examples of org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking()

      RPCServiceClient sender = getRPCClient("EchoXMLService", "divide");

        ArrayList args = new ArrayList();
        args.add("10");
        args.add("0");
        OMElement response = sender.invokeBlocking(new QName("http://rpc.axis2.apache.org", "divide", "req"), args.toArray());
        assertEquals(response.getFirstElement().getText(), "INF");
    }

    public void testEchoBool() throws AxisFault {
        RPCServiceClient sender = getRPCClient("EchoXMLService", "echoBool");
View Full Code Here

Examples of org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking()

        RPCServiceClient sender = getRPCClient("EchoXMLService", "echoBool");

        ArrayList args = new ArrayList();
        args.add("true");

        OMElement response = sender.invokeBlocking(new QName("http://rpc.axis2.apache.org", "echoBool", "req"), args.toArray());
        assertEquals(Boolean.valueOf(response.getFirstElement().getText()).booleanValue(), true);
    }

    public void testEchoByte() throws AxisFault {
      RPCServiceClient sender = getRPCClient("EchoXMLService", "echoByte");
View Full Code Here

Examples of org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking()

    public void testEchoByte() throws AxisFault {
      RPCServiceClient sender = getRPCClient("EchoXMLService", "echoByte");

        ArrayList args = new ArrayList();
        args.add("1");
        OMElement response = sender.invokeBlocking(new QName("http://rpc.axis2.apache.org", "echoByte", "req"), args.toArray());
        assertEquals(Byte.parseByte(response.getFirstElement().getText()), 1);
    }

    public void testCompany() throws AxisFault {
      RPCServiceClient sender = getRPCClient("EchoXMLService", "echoCompany");
View Full Code Here

Examples of org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking()

        ps.add(p3);

        com.setPersons(ps);
        ArrayList args = new ArrayList();
        args.add(com);
        sender.invokeBlocking(new QName("http://rpc.axis2.apache.org", "echoCompany", "req"), args.toArray());
    }


    public void testtestCompany() throws AxisFault {
      RPCServiceClient sender = getRPCClient("EchoXMLService", "testCompanyArray");
View Full Code Here

Examples of org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking()

        args.add(com);
        args.add(com);

        ArrayList req = new ArrayList();
        req.add(args.toArray());
        OMElement value = sender.invokeBlocking(new QName("http://rpc.axis2.apache.org", "testCompanyArray", "req"), req.toArray());
        assertEquals("4", value.getFirstElement().getText());
    }

    public void testCompanyArray() throws AxisFault {
      RPCServiceClient sender = getRPCClient("EchoXMLService", "CompanyArray");
View Full Code Here

Examples of org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking()

        client.setOptions(options);
        ArrayList args = new ArrayList();
        args.add("100");
        args.add("200");

        OMElement response = client.invokeBlocking(
                new QName("http://engine.axis2.apache.org", "add", "ns1"), args.toArray());
        assertEquals(Integer.parseInt(response.getFirstElement().getText()), 300);
    }
}
View Full Code Here

Examples of org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking()

        Object[] opFindEntryArgs = new Object[] { name };
        Class[] returnTypes = new Class[] { Entry.class };

       
        Object[] response = serviceClient.invokeBlocking(opFindEntry,
                opFindEntryArgs, returnTypes);
       
        Entry result = (Entry) response[0];
       
        if (result == null) {
View Full Code Here

Examples of org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking()

        EndpointReference targetEPR = new EndpointReference(
                "local://services/AddressBookService");
        options.setTo(targetEPR);
        options.setAction("addEntry");

        Object[] ret = serviceClient.invokeBlocking(opAddEntry, opAddEntryArgs, new Class[]{Integer.class});
        assertEquals(ret[0], new Integer(1));

        QName opFindEntry = new QName("http://rpc.axis2.apache.org", "findEntry");
        String name = "Abby Cadabby";
View Full Code Here

Examples of org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking()

        Options options2 = serviceClient2.getOptions();
        EndpointReference targetEPR2 = new EndpointReference(
                "local://services/AddressBookService");
        options2.setTo(targetEPR2);
        options2.setAction("findEntry");
        Object[] response = serviceClient2.invokeBlocking(opFindEntry,
                opFindEntryArgs, returnTypes);

        Entry result = (Entry) response[0];
        assertNotNull(result);
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.