public static void main(String[] args) throws Exception { RESTClient client = new RESTClient(); // Post XOP with CXF JAX-RS WebClient client.useXopAttachmentServiceWithWebClient(); // Post XOP with CXF JAX-RS Proxy client.useXopAttachmentServiceWithProxy(); // Post Book attachments in XML and JSON formats with CXF JAX-RS WebClient client.useAttachmentServiceWithWebClient(); // Post Book attachments in XML and JSON formats with CXF JAX-RS Proxy client.useAttachmentServiceWithProxy(); }