title: PHP soap trimming necessary whitespace
body: <p>So I'm building a soap communicator to transfer data to a client. </p>
  
  <p>In it there is a field that is blank, but can't be communicated as an empty tag, they've requested it to just be a single blank space.</p>
  
  <p>So the data is along the lines of </p>
  
  <p><code>$address = array("address1" =&gt; " ", "address2" =&gt; "123 Fake Street",...);</code></p>
  
  <p>When I generate the xml for this I get</p>
  
  <p><code>&lt;ns1:Address1/&gt;</code> instead of <code>&lt;ns1:Address1&gt; &lt;/ns1:Address1&gt;</code></p>
  
  <p>The WSDL is Soap 1.2 and utf8 encoded.</p>
  
  <p>I have tried urlencode(), rawurlencode(), utf8_encode() as well as the html &amp;nbsp character.</p>