title: SPRING WS misses "<?xml version="1.0" encoding="UTF-8"?>"
body: <p>I use spring ws.</p>
  
  <p>How could I add this <code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</code> to my first line in the response?</p>
  
  <p>I tried this block of code but It doesn't work. Could anybody help me?</p>
  
  <pre><code>@Bean (name = "messageFactory")
  public SaajSoapMessageFactory messageFactory () {
      Map&lt;String, Object&gt; props = new HashMap&lt;&gt;();
      props.put(SOAPMessage.WRITE_XML_DECLARATION, Boolean.TRUE);
  
      SaajSoapMessageFactory msgFactory = new SaajSoapMessageFactory();
      msgFactory.setMessageProperties(props);
      msgFactory.setSoapVersion(org.springframework.ws.soap.SoapVersion.SOAP_11);
  
      return msgFactory;
  }
  </code></pre>