use of org.apache.hello_world_doc_lit.SOAPService7 in project cxf by apache.
the class JMSClientServerTest method testReplyToConfig.
@Test
public void testReplyToConfig() throws Exception {
ActiveMQConnectionFactory cf = new ActiveMQConnectionFactory(broker.getBrokerURL());
TestReceiver receiver = new TestReceiver(cf, "SoapService7.replyto.queue", false);
receiver.setStaticReplyQueue("SoapService7.reply.queue");
receiver.runAsync();
QName serviceName = new QName("http://apache.org/hello_world_doc_lit", "SOAPService7");
QName portName = new QName("http://apache.org/hello_world_doc_lit", "SoapPort7");
URL wsdl = getWSDLURL("/wsdl/hello_world_doc_lit.wsdl");
SOAPService7 service = new SOAPService7(wsdl, serviceName);
Greeter greeter = service.getPort(portName, Greeter.class);
String name = "FooBar";
String reply = greeter.greetMe(name);
Assert.assertEquals("Hello " + name, reply);
((Closeable) greeter).close();
}
Aggregations