sigInterceptor.setStyle(XmlSigOutInterceptor.ENVELOPING_SIG);
}
bean.getOutInterceptors().add(sigInterceptor);
bean.setServiceClass(BookStore.class);
BookStore store = bean.create(BookStore.class);
try {
Book book = store.addBook(new Book("CXF", 126L));
assertEquals(126L, book.getId());
} catch (ServerWebApplicationException ex) {
fail(ex.getMessage());
} catch (ClientWebApplicationException ex) {
if (ex.getCause() != null && ex.getCause().getMessage() != null) {