// http://localhost:8080/java_first_jaxws-<cxf-version>/services/hello_world
// Add a port to the Service
service.addPort(PORT_NAME, SOAPBinding.SOAP11HTTP_BINDING, endpointAddress);
HelloWorld hw = service.getPort(HelloWorld.class);
System.out.println(hw.sayHi("World"));
User user = new UserImpl("World");
System.out.println(hw.sayHiToUser(user));
//say hi to some more users to fill up the map a bit
user = new UserImpl("Galaxy");
System.out.println(hw.sayHiToUser(user));
user = new UserImpl("Universe");
System.out.println(hw.sayHiToUser(user));
System.out.println();
System.out.println("Users: ");
Map<Integer, User> users = hw.getUsers();
for (Map.Entry<Integer, User> e : users.entrySet()) {
System.out.println(" " + e.getKey() + ": " + e.getValue().getName());
}
}