Examples of HelloWorld


Examples of demo.hw.server.HelloWorld

            factory.setAddress(args[0]);
        } else {
            factory.setAddress("http://localhost:9000/Hello");
        }
        //factory.getServiceFactory().setDataBinding(new AegisDatabinding());
        HelloWorld client = (HelloWorld)factory.create();
        System.out.println("Invoke sayHi()....");
        System.out.println(client.sayHi("user"));
        System.exit(0);
    }
View Full Code Here

Examples of demo.service.HelloWorld

            } else {
                System.err.println("Invalid argument " + arg);
                return;
            }
        }
        HelloWorld client = null;
        if (jaxws) {
            client = createClientJaxWs();
        } else {
            client = createClientCxf();
        }
        String reply = client.sayHi("HI");
        System.out.println(reply);
        System.exit(0);
    }
View Full Code Here

Examples of demo.spring.HelloWorld

    public static void main(String args[]) throws Exception {
        // START SNIPPET: client
        ClassPathXmlApplicationContext context
            = new ClassPathXmlApplicationContext(new String[] {"demo/spring/client/client-beans.xml"});

        HelloWorld client = (HelloWorld)context.getBean("client");

        String response = client.sayHi("Joe");
        System.out.println("Response: " + response);
        System.exit(0);
        // END SNIPPET: client
    }
View Full Code Here

Examples of demo.spring.service.HelloWorld

    public static void main(String args[]) throws Exception {
        // START SNIPPET: client
        ClassPathXmlApplicationContext context
            = new ClassPathXmlApplicationContext(new String[] {"client-beans.xml"});

        HelloWorld client = (HelloWorld)context.getBean("client");

        String response = client.sayHi("Joe");
        System.out.println("Response: " + response);
        System.exit(0);
        // END SNIPPET: client
    }
View Full Code Here

Examples of hello.HelloWorld

        node.stop();
    }

    private void testNode(Node node) {
        node.start();
        HelloWorld hw = node.getService(HelloWorld.class, "HelloWorld");
        Assert.assertEquals("Hello, Node", hw.hello("Node"));
        node.stop();
    }
View Full Code Here

Examples of hello.HelloWorld

        node.stop();
    }

    private void testNode2(Node node) {
        node.start();
        HelloWorld hw = node.getService(HelloWorld.class, "HelloWorld2");
        Assert.assertEquals("Hello, Node", hw.hello("Node"));
        node.stop();
    }
View Full Code Here

Examples of helloWorld.HelloWorld

import helloWorld.HelloWorld;

public class HelloWorldTest {
  @Test
  public void testHellowWorld(){
    HelloWorld hello = new HelloWorld();
    assertEquals("A test for Hello World String", "Hello World", hello.sayHello());
  }
View Full Code Here

Examples of helloworld.HelloWorld

*/
public class HelloWorldPrototypeTest {

    @Test
    public void testHelloWorldPrototype(){
        HelloWorld helloWorld = HelloWorldPrototype.PROTOTYPE.clone();
        assertThat(helloWorld.helloWorld(),is("Hello Prototype!"));
    }
View Full Code Here

Examples of helloworld.Helloworld

       
        // start a composite
        node.startComposite("HelloworldContrib", "lifecycle.composite");
       
        // send a message to each client
        Helloworld hwCE = node.getService(Helloworld.class, "HelloworldClientCE");
        System.out.println(hwCE.sayHello("name"));
        Helloworld hwC = node.getService(Helloworld.class, "HelloworldClientC");
        System.out.println(hwC.sayHello("name"));
        Helloworld hwS = node.getService(Helloworld.class, "HelloworldClientC");
        System.out.println(hwS.sayHello("name"));       
       
        // stop a composite
        node.stopComposite("HelloworldContrib", "lifecycle.composite");
       
        // uninstall a constribution
View Full Code Here

Examples of helloworld.ifaces.HelloWorld

    }

    public static void main( final String[] args ) throws Exception
    {
        final Document parsedDocument = Main.getDocument( "/helloworld.xml" );
        final HelloWorld helloWorld = XML2Java.bind( parsedDocument, HelloWorld.class );

        System.out.println( helloWorld.getMessageFromElement() );
        System.out.println( helloWorld.getMessageFromAttribute() );
    }
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.