I\'m having quite a problem here, and I think it is because I don\'t understand very much how I should use the API provided by Java.
I need to write an int
int
You don´t need more like this
Example exampleExample = method(example); ByteArrayOutputStream baos = new ByteArrayOutputStream(); marshaller.marshal(exampleExample , baos); Message message = MessageBuilder.withBody(baos.toByteArray()).build();