Examples of Echo


Examples of 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.appl.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 echo.wrapped.Echo

        EchoPortType client = service.getEchoHttpPort();
       
        Holder<EchoResponse> out2 = new Holder<EchoResponse>();
        Holder<EchoResponse> outHeader = new Holder<EchoResponse>();
       
        Echo echo = new Echo();
        echo.setText("hi");
       
        Echo echoHeader = new Echo();
        echoHeader.setText("header");
       
        assertEquals("hi", client.echo(echo, echoHeader, out2, outHeader).getText());
        assertEquals("header", outHeader.value.getText());
        assertEquals("hi", out2.value.getText());
    }
View Full Code Here

Examples of exercise.echo.Echo

      usage();
      return;
    }
    String serverURL = argv[0];
   
    Echo echo  = null;  
    try {
      echo = (Echo)Naming.lookup(argv[0]);
      BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
      while(true) {
  System.out.print("Type a string: ");
  String s = in.readLine();
  String reply = echo.reverse(s);
  System.out.println("The reply from " + serverURL + " is [" + reply + "].");
      }
    }
    catch (Exception e) {
      System.out.println("X exception: " + e.getMessage());
View Full Code Here

Examples of net.sourceforge.peers.media.Echo

            if (soundManager != null) {
                soundManager.closeLines();
            }
            break;
        case echo:
            Echo echo = userAgent.getEcho();
            if (echo != null) {
                echo.stop();
                userAgent.setEcho(null);
            }
            break;
        default:
            break;
View Full Code Here

Examples of org.agilewiki.jactor.events.Echo

*/
final public class QuadTest extends TestCase {
    public void testTiming() {
        ThreadManager threadManager = JAThreadManager.newThreadManager(8);
        try {
            Driver driver = new Driver(threadManager, 10, new Echo(threadManager));
            JAEventFuture<Object> eventFuture = new JAEventFuture<Object>();
            int i = 0;
            while (i < 10) {
                eventFuture.send(driver, eventFuture);
                i += 1;
View Full Code Here

Examples of org.apache.axis2.jaxws.proxy.soap12.Echo

        TestLogger.logger.debug("test: " + getName());
       
        // create the proxy instance.  the WSDL used by this proxy
        // should have a proper SOAP 1.2 binding configured
        SOAP12EchoService service = new SOAP12EchoService();
        Echo proxy = service.getPort(new QName("http://jaxws.axis2.apache.org/proxy/soap12", "EchoPort"), Echo.class);
        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.rpclit.stringarray.sei.Echo

    public void testStringArrayType() throws Exception {
        System.out.println("------------------------------");
        System.out.println("Test : " + getName());
           
        RPCLitStringArrayService service = new RPCLitStringArrayService();
        Echo portType = service.getEchoPort();
        BindingProvider p = (BindingProvider) portType;
        p.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
                                  "http://localhost:6060/axis2/services/RPCLitStringArrayService.EchoImplPort");

        String[] strArray= {"str1", "str2", "str3", "str4 5"};
        StringArray array = new StringArray();
        array.getItem().addAll(Arrays.asList(strArray));
        StringArray result = portType.echoStringArray(array);
           
        assertEquals(array.getItem().size(), result.getItem().size());
        for (int i = 0; i < array.getItem().size(); i++) {
            assertEquals(array.getItem().get(i), result.getItem().get(i));
        }
View Full Code Here

Examples of org.apache.commons.proxy.util.Echo

        System.setProperties( prevProperties );
    }

    public void testCreateNullObject() throws Exception
    {
        final Echo nullEcho = ( Echo ) ProxyUtils
                .createNullObject( new JavassistProxyFactory(), new Class[]{ Echo.class } );
        assertNull( nullEcho.echoBack( "hello" ) );
        assertNull( nullEcho.echoBack( "hello", "world" ) );
        assertEquals( ( int ) 0, nullEcho.echoBack( 12345 ) );
    }
View Full Code Here

Examples of org.apache.cxf.aegis.services.Echo

    @Before
    public void before() throws Exception {
        JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean();
        sf.setAddress("http://localhost:" + PORT + "/Echo");
        sf.setDataBinding(new AegisDatabinding());
        sf.setServiceBean(new Echo());
        sf.getInInterceptors().add(new URIMappingInterceptor());
        Server server = sf.create();
        // turn off nanny in URIMappingInterceptor
        server.getEndpoint()
            .getService().put(AbstractInDatabindingInterceptor.NO_VALIDATE_PARTS, Boolean.TRUE);
       
        ServerFactoryBean sf2 = new ServerFactoryBean();
        sf2.setAddress("http://localhost:" + PORT + "/SimpleEcho");
        sf2.setDataBinding(new AegisDatabinding());
        sf2.setServiceBean(new Echo());
        sf2.getInInterceptors().add(new URIMappingInterceptor());
        server = sf2.create();
        // turn off nanny in URIMappingInterceptor
        server.getEndpoint()
            .getService().put(AbstractInDatabindingInterceptor.NO_VALIDATE_PARTS, Boolean.TRUE);
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.