title: remove whitespaces from jaxb xml response
body: <p>I have a <code>WS</code> that generates a <code>SOAP</code> <code>XML</code> message. Due to size limitations I would like to remove the unnecessary whitespaces (used for indentation) and new lines. How can I do this when using generated classes and annotations (<code>@WebService</code> and <code>@WebMethod</code>)? In the examples I have seen it is done like this:</p>
  
  <pre><code>Marshaller m = jc.createMarshaller();
  m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.FALSE);
  </code></pre>
  
  <p>However, I am not manually creating the <code>Marshaller</code> so I do not know where I can add this property and if this is the correct way of doing it. The <code>JAXB</code> implementation is <code>axis2</code>.</p>