URL wsdl = null;
if (args.length == 0) {
wsdl = Client.class.getResource("/jms-spec-wsdl/jms_greeter.wsdl");
}
JMSGreeterService service = new JMSGreeterService(wsdl, SERVICE_NAME);
JMSGreeterPortType greeter = (JMSGreeterPortType)service.getPort(PORT_NAME, JMSGreeterPortType.class);
System.out.println("Invoking sayHi...");
System.out.println("server responded with: " + greeter.sayHi());
System.out.println();