Examples of echo()


Examples of org.apache.axis2.jibx.customer.EchoCustomerServiceStub.echo()

        Person person = new Person(42, "John", "Smith");
        Customer customer = new Customer("Redmond", person, "+14258858080",
                                         "WA", "14619 NE 80th Pl.", new Integer(98052));
        EchoCustomerServiceStub stub = new EchoCustomerServiceStub(UtilServer.getConfigurationContext(),
                "http://127.0.0.1:" + UtilServer.TESTING_PORT + "/axis2/services/EchoCustomerService/echo");
        Customer result = stub.echo(customer);
        stopServer();
        assertEquals("Result object does not match request object",
                     customer, result);
    }
}
View Full Code Here

Examples of org.apache.commons.proxy.util.Echo.echo()

    }

    public void testCreateDelegatingProxy()
    {
        final Echo echo = ( Echo ) factory.createDelegatorProxy( createSingletonEcho(), ECHO_ONLY );
        echo.echo();
        assertEquals( "message", echo.echoBack( "message" ) );
        assertEquals( "ab", echo.echoBack( "a", "b" ) );
    }

    public void testBooleanInterceptorParameter()
View Full Code Here

Examples of org.apache.cxf.ws.security.wss4j.Echo.echo()

        );
       
        WSS4JOutInterceptor ohandler = new WSS4JOutInterceptor(properties);
        client.getOutInterceptors().add(ohandler);

        assertEquals("test", echo.echo("test"));
    }
   
    @Test
    public void testSaml1SignedSenderVouches() throws Exception {
        // Create + configure service
View Full Code Here

Examples of org.apache.deltaspike.example.echo.EchoService.echo()

        LOG.info("---");

        EchoService defaultEchoService = BeanProvider.getContextualReference(DefaultEchoService.class, false);

        LOG.info(defaultEchoService.echo("Hello explicitly resolved CDI bean!"));

        defaultEchoService = BeanProvider.getContextualReference("defaultEchoService", false, EchoService.class);

        LOG.info(defaultEchoService.echo("Hello CDI bean resolved by name!"));
View Full Code Here

Examples of org.apache.geronimo.jaxws.greeter_provider.ejb.EchoLocal.echo()

    @WebServiceRef(name = "services/ejb/Provider")
    private Service myService;

    private void assertEchoInvocation(String beanName) throws Exception {
        EchoLocal echoLocal = lookupEchoLocal(beanName);
        Assert.assertEquals(echoLocal.echo(ECHO_WORDS), ECHO_WORDS);
        EchoRemote echoRemote = null;
        echoRemote = lookupEchoRemote(beanName);
        Assert.assertEquals(echoRemote.echo(ECHO_WORDS), ECHO_WORDS);
    }
View Full Code Here

Examples of org.apache.geronimo.jaxws.greeter_provider.ejb.EchoRemote.echo()

    private void assertEchoInvocation(String beanName) throws Exception {
        EchoLocal echoLocal = lookupEchoLocal(beanName);
        Assert.assertEquals(echoLocal.echo(ECHO_WORDS), ECHO_WORDS);
        EchoRemote echoRemote = null;
        echoRemote = lookupEchoRemote(beanName);
        Assert.assertEquals(echoRemote.echo(ECHO_WORDS), ECHO_WORDS);
    }

    private EchoLocal lookupEchoLocal(String beanName) throws Exception {
        return (EchoLocal) localContext.lookup(beanName + "Local");
    }
View Full Code Here

Examples of org.apache.geronimo.test.remote.Test.echo()

    {
      Context ctx = new InitialContext();
      TestHome result = (TestHome)ctx.lookup("java:comp/env/ejb/TestBean");
      //TestHome testHome = (TestHome) PortableRemoteObject.narrow(result, TestHome.class);
      Test test = result.create();
      String echo = test.echo("Test");
      out.println("<font align=Center face=\"Garamond\"> Check EJB Reference : Call to bean method returned ->"+echo+" </font><br>");
     
      DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/MyDataSource");
          Connection con = ds.getConnection();
          out.println("<font align=Center face=\"Garamond\"> Check Resource Reference : Got Connection ->"+con+" </font><br>");
View Full Code Here

Examples of org.apache.hadoop.ipc.TestProtoBufRpc.TestRpcService.echo()

        @Override
        public String doEcho(String msg) throws Exception {
          EchoRequestProto req = EchoRequestProto.newBuilder()
            .setMessage(msg)
            .build();
          EchoResponseProto responseProto = proxy.echo(null, req);
          return responseProto.getMessage();
        }
      };
    } else if (opts.rpcEngine == WritableRpcEngine.class) {
      final TestProtocol proxy = (TestProtocol)RPC.getProxy(
View Full Code Here

Examples of org.apache.hadoop.ipc.TestRPC.TestProtocol.echo()

      final TestProtocol proxy = (TestProtocol)RPC.getProxy(
          TestProtocol.class, TestProtocol.versionID, addr, conf);
      return new RpcServiceWrapper() {
        @Override
        public String doEcho(String msg) throws Exception {
          return proxy.echo(msg);
        }
      };
    } else {
      throw new RuntimeException("unsupported engine: " + opts.rpcEngine);
    }
View Full Code Here

Examples of org.apache.tajo.rpc.test.DummyProtocol.DummyProtocolService.BlockingInterface.echo()

    BlockingRpcClient client = new BlockingRpcClient(DummyProtocol.class, NetUtils.createUnresolved(hostAndPort));
    BlockingInterface stub = client.getStub();

    EchoMessage message = EchoMessage.newBuilder()
        .setMessage(MESSAGE).build();
    EchoMessage response2 = stub.echo(null, message);
    assertEquals(MESSAGE, response2.getMessage());
    client.close();
  }
}
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.