Examples of echo()


Examples of echo.Echo.echo()

        String contribution = ContributionLocationHelper.getContributionLocation(JSONRPCReferenceTestCase.class);
        node = NodeFactory.newInstance().createNode("JSONRPCReference.composite", new Contribution("testClient", contribution));
        node.start();

        Echo echoComponent = node.getService(Echo.class,"EchoComponentWithReference");
        String result = echoComponent.echo("ABC");
        Assert.assertEquals("echo: ABC", result);
        if (node != null) {
            node.stop();
        }
    }
View Full Code Here

Examples of echo.EchoProto.EchoService.BlockingInterface.echo()

                e.printStackTrace();
            }
            for (int i = 0; i < kRequests; ++i) {
                EchoResponse response;
                try {
                    response = remoteService.echo(null, request);
                    assert response.getPayload().equals(payload);
                } catch (ServiceException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                }
View Full Code Here

Examples of echo.appl.Echo.echo()

        SCADomain scaDomain  = SCADomain.newInstance("EchoBinding.composite");
       
        // Call the echo service component which will, in turn, call a reference
        // with an echo binding. The echo binding will echo the given string.
        Echo service = scaDomain.getService(Echo.class, "EchoComponent");
        String echoString = service.echo("foo");
        System.out.println("Echo reference = " + echoString );

        // Call the echo server. This will dispatch the call to a service with an
        // echo binding. The echo binding will pass the call to the echo component.
        echoString = EchoServer.getServer().sendReceive("EchoComponent/EchoService", "bar");
View Full Code Here

Examples of hello.HelloWorld.echo()

        Assert.assertNull(address);   
       
        HelloWorld.Message msg = new HelloWorld.Message();
        msg.name = "John";
        msg.message = "Hi";
        Assert.assertSame(msg, hw.echo(msg));
        node.stop();
    }

    private void testNode2(Node node) {
        node.start();
View Full Code Here

Examples of interopbaseaddress.interop.IPingService.echo()

                            portPrefix + "_IPingService"
                        ),
                        IPingService.class
                    );
               
                final String output = port.echo(INPUT);
                if (!INPUT.equals(output)) {
                    System.err.println(
                        "Expected " + INPUT + " but got " + output
                    );
                    results.add("Expected " + INPUT + " but got " + output);
View Full Code Here

Examples of org.apache.axis2.jaxws.proxy.rpclitswa.sei.RPCLitSWA.echo()

            Holder<DataHandler> attachmentINOUT_Holder = new Holder<DataHandler>();
            attachmentINOUT_Holder.value = attachmentINOUT;
            Holder<String> response_Holder = new Holder<String>();
            Holder<String> attachmentOUT_Holder = new Holder<String>();
          
            proxy.echo(request, attachmentIN, attachmentINOUT_Holder, response_Holder,
                       attachmentOUT_Holder);
           
            assertTrue("Bad Response Holder", response_Holder != null);
            assertTrue("Response value is null", response_Holder.value != null);
            assertTrue("Response is not the same as request. Receive="+response_Holder.value,
View Full Code Here

Examples of org.apache.axis2.jaxws.proxy.soap12.Echo.echo()

        BindingProvider p = (BindingProvider) proxy;
        p.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, axisEndpoint);

        // invoke the remote operation.  send a key that tells the
        // service send back a SOAP 1.2 response.
        String response = proxy.echo(SEND_SOAP12_RESPONSE);
        TestLogger.logger.debug("response returned [" + response + "]");
       
        // validate the results
        assertNotNull(response);
        assertTrue(!response.equals("FAIL"));
View Full Code Here

Examples of org.apache.axis2.jaxws.resourceinjection.sei.ResourceInjectionPortType.echo()

        TestLogger.logger.debug("------------------------------");
        TestLogger.logger.debug("Test : " + getName());
    try{
      ResourceInjectionService service = new ResourceInjectionService();
      ResourceInjectionPortType proxy = service.getResourceInjectionPort();
      String response = proxy.echo("echo Request");
            TestLogger.logger.debug("Response String = " + response);
            TestLogger.logger.debug("------------------------------");
    }catch(Exception e){
      e.printStackTrace();
      fail();
View Full Code Here

Examples of org.apache.axis2.jaxws.sample.dlwminArrays.IGenericService.echo()

        List<String> id_in = new ArrayList<String>();
        id_in.add("jbond");
        id_in.add("evil");
        Holder<List<String>> inout = new Holder<List<String>>(id_in);
       
        List<WSUser> response = proxy.echo(in, inout);
        assertTrue(response != null);
        assertTrue(response.size() == 2);
        assertTrue("James Bond".equals(response.get(0).getUserID()));
        assertTrue("Dr. Evil".equals(response.get(1).getUserID()));
        List<String> id_out = inout.value;
View Full Code Here

Examples of org.apache.axis2.jaxws.sample.doclitbaremin.sei.DocLitBareMinPortType.echo()

        p.getRequestContext().put(
                BindingProvider.SOAPACTION_USE_PROPERTY, Boolean.TRUE);
        p.getRequestContext().put(
                BindingProvider.SOAPACTION_URI_PROPERTY, "echo");
        String request = "dlroW elloH";
        String response = proxy.echo(request);
       
        assertTrue(request.equals(response));
       
    }
}
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.