QName serviceName = new QName("http://cxf.apache.org/jms_greeter", "JMSGreeterService2");
QName portName = new QName("http://cxf.apache.org/jms_greeter", "GreeterPort2");
URL wsdl = getWSDLURL("/wsdl/jms_spec_test.wsdl");
assertNotNull(wsdl);
JMSGreeterService2 service = new JMSGreeterService2(wsdl, serviceName);
assertNotNull(service);
String response = new String("Bonjour");
JMSGreeterPortType greeter = service.getPort(portName, JMSGreeterPortType.class);
String reply = greeter.sayHi();
assertNotNull("no response received from service", reply);
assertEquals(response, reply);
}