title: Convert StreamResult to string or xml
body: <p>Using spring ws to get the StreamResult as below</p>
  
  <pre><code>StreamSource source = new StreamSource(new StringReader(MESSAGE));
  StreamResult result = new StreamResult(System.out);
  webServiceTemplate.sendSourceAndReceiveToResult("http://someUri", 
                  source, new SoapActionCallback("someCallBack"), result); 
  return result;
  </code></pre>
  
  <p>I get the result, But I want to extract it to some sort of xml or even as a string (Just want to see the contents in order to generate the response).</p>
  
  <p>How can I do this?</p>