// Create the service model
Service serviceModel = sf.create(Echo.class);
// Create a proxy for the service
XFireProxyFactory factory = new XFireProxyFactory(getXFire());
Echo echo = (Echo) factory.create(serviceModel, "jms://GenericTopic?topic=Echo");
// Since JMS doesn't really have a concept of anonymous endpoints, we need
// need to let xfire know what JMS endpoint we should use
((XFireProxy) Proxy.getInvocationHandler(echo)).getClient().setEndpointUri("jms://GenericTopic?topic=Echo");
// run the client!
String resString = echo.echo("hello");
assertEquals("hello", resString);
}