title: base64 and UTF-8 encoding issue
body: <p>I am writing a simple web method which returns byte[], and the byte[] is encoded by UTF-8. I have investigated related WSDL and soap message, seems the underlying web services stack will use base64 encoding?</p>
  
  <p>For various reasons, I can not use or re-encode my return byte[] from UTF-8 to base64. Any ideas to modify the base64 encoding to UTF-8 encoding?</p>
  
  <p>Here is my related web methods, SOAP message and related type in WSDL</p>
  
  <p>Web service server side code</p>
  
  <pre><code>        [WebMethod]
          public byte[] HelloWorld2()
          {
              return utf8encodedbytes;
          }
  </code></pre>
  
  <p>SOAP response</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
    &lt;soap:Body&gt;
      &lt;HelloWorld2Response xmlns="http://tempuri.org/"&gt;
        &lt;HelloWorld2Result&gt;base64Binary&lt;/HelloWorld2Result&gt;
      &lt;/HelloWorld2Response&gt;
    &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>related type in WSDL</p>
  
  <pre><code>xsd:base64Binary
  </code></pre>
  
  <p>thanks in advance,
  George</p>