// 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();
GetAnotherBook getAnotherBook = new GetAnotherBook();
getAnotherBook.setId(123);
Book book = bs.getAnotherBook(getAnotherBook);
assertEquals(book.getId(), (long)123);
assertEquals(book.getName(), "CXF in Action");
}