title: Web Service always return empty plain/text
body: <p>Has been using <code>Service Reference</code> without any success:</p>
  
  <p><a href="https://stackoverflow.com/questions/12294807/web-service-return-only-xml">Web service return only XML</a></p>
  
  <p>Now I am using the raw SOAP message to do it:</p>
  
  <pre><code>XmlDocument doc = new XmlDocument();
                  doc.Load("Service.xml");
  
                  // create the request to your URL
                  Uri wsHost = new Uri("http://www.rrr.net/services/Connect");
                  HttpWebRequest request = (HttpWebRequest) WebRequest.Create(wsHost);
  
                  // add the headers
                  // the SOAPACtion determines what action the web service should use
                  request.Headers.Add("SOAPAction", "act");
  
                  // set the request type
                  request.ContentType = "text/xml;charset=\"utf-8\"";
                  request.Accept = "text/xml";
                  request.Method = "POST";
  
                  // add our body to the request
                  Stream stream = request.GetRequestStream();
                  doc.Save(stream);
                  stream.Close();
  
                  // get the response back
                  using( HttpWebResponse response = (HttpWebResponse)request.GetResponse() )
                  {
                      Stream dataStream = response.GetResponseStream();
                      StreamReader dataReader = new StreamReader(dataStream); 
  
                      // Use Linq to read the xml response
                      using (XmlReader reader = XmlReader.Create(dataStream))
                      {
  </code></pre>
  
  <p>The post is correct, but <code>response</code> always give me <code>text/plain</code> empty result, the reponse header:</p>
  
  <pre><code>Headers = {Keep-Alive: timeout=5, max=100
  Connection: Keep-Alive
  Transfer-Encoding: chunked
  Content-Type: text/plain
  Date: Thu, 06 Sep 2012 15:59:28 GMT
  
  }
  </code></pre>
  
  <p>The SOAP message is, act is the function:</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webService"&gt;
    &lt;soapenv:Header/&gt;
    &lt;soapenv:Body&gt;
      &lt;web:act&gt;
        &lt;web:d1&gt;1&lt;/web:d1&gt;
        &lt;web:d2&gt;14&lt;/web:d2&gt;
      &lt;/web:act&gt;
    &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>I use <code>SoapUI</code>, below is the raw request from SoapUI, it return a xml result:</p>
  
  <pre><code>POST http://www.rrr.net/services/Connect HTTP/1.1
  Accept-Encoding: gzip,deflate
  Content-Type: text/xml;charset=UTF-8
  SOAPAction: ""
  Content-Length: 516
  Host: www.rrr.net
  Connection: Keep-Alive
  User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
  </code></pre>
  
  <p>Thank you.</p>