// Use the HTTP Binding which understands the Java Rest Annotations
sf.getClientFactoryBean().setBindingId(HttpBindingFactory.HTTP_BINDING_ID);
sf.setAddress("http://localhost:" + PORT + "/xml/");
BookService bs = (BookService)sf.create();
GetBook getBook = new GetBook();
getBook.setId(123);
Book book = bs.getBook(getBook);
assertEquals(book.getId(), (long)123);
assertEquals(book.getName(), "CXF in Action");
}