FileDocCategorySizeDatePackage
DemoClient.javaAPI DocExample3196Tue May 29 16:57:50 BST 2007rmdemo.client

DemoClient

public class DemoClient extends Object
This is a demo client to demonstrate the Session support with WS RM implementation.
author
Mike Grogan

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

        RMDemoService service = new RMDemoService();
        RMDemo port = service.getRMDemoPort();

        BufferedReader reader = new BufferedReader(
                                    new InputStreamReader(
                                       System.in));

        System.out.println("Running the RMDemo....\n"+
                "Enter as many strings as you like... \n" +
                "then press <Enter> to see the result and terminate this client\n");

        while (true) {

            String str = reader.readLine();
            if (!str.equals("")) {
                port.addString(str);

            } else {
                System.out.println(port.getResult());
                ((Closeable)port).close();
                System.exit(0);

            }

        }