title: content type 'text/xml; charset=utf-8' was not the expected type 'application/soap+xml; charset=utf-8'
body: <p>I've been trying for a long time to send right request to soap server. I'm keep getting error message. </p>
  
  <p>Here is my xml</p>
  
  <p>GET LAST REQUEST (newlines added):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://tempuri.org/"&gt;
  &lt;SOAP-ENV:Body&gt;&lt;ns1:TestData1&gt;&lt;ns1:iVal&gt;1&lt;/ns1:iVal&gt;&lt;/ns1:TestData1&gt;&lt;/SOAP-ENV:Body&gt;
  &lt;/SOAP-ENV:Envelope&gt;
  </code></pre>
  
  <p>GET LAST RESPONSE :</p>
  
  <p>REQUEST HEADERS:</p>
  
  <pre><code>POST /DPWebService/CardsService.svc/ICardsService HTTP/1.1
  Host: d67v7tg1
  Connection: Keep-Alive
  User-Agent: PHP-SOAP/5.2.9-1
  Content-Type: text/xml; charset=utf-8
  SOAPAction: "http://tempuri.org/ICardsService/TestData1"
  Content-Length: 254
  </code></pre>
  
  <p>Here is the response. </p>
  
  <pre><code>object(SoapFault)#2 (8) { 
  ["message:protected"]=&gt; string(142) "Cannot process the message because the content type 'text/xml; charset=utf-8' was not the expected type 'application/soap+xml; charset=utf-8'." 
  ["string:private"]=&gt; string(0) "" 
  ["code:protected"]=&gt; int(0) 
  ["file:protected"]=&gt; string(32) "C:\localhost\www\test5\index.php" 
  ["line:protected"]=&gt; int(208) 
  ["trace:private"]=&gt; array(3) { 
      [0]=&gt; array(4) { 
          ["function"]=&gt; string(11) "__doRequest" 
          ["class"]=&gt; string(10) "SoapClient" 
          ["type"]=&gt; string(2) "-&gt;" 
          ["args"]=&gt; array(5) { 
              [0]=&gt; string(254) " 1 " 
              [1]=&gt; string(59) "http://d67v7tg1/DPWebService/CardsService.svc/ICardsService" 
              [2]=&gt; string(42) "http://tempuri.org/ICardsService/TestData1" 
              [3]=&gt; int(1) 
              [4]=&gt; int(0) 
          }
      } 
      [1]=&gt; array(4) { 
          ["function"]=&gt; string(6) "__call" 
          ["class"]=&gt; string(10) "SoapClient" 
          ["type"]=&gt; string(2) "-&gt;" 
          ["args"]=&gt; array(2) { 
              [0]=&gt; string(9) "TestData1" 
              [1]=&gt; array(1) { 
                  [0]=&gt; array(2) { 
                      ["iVal"]=&gt; int(1) 
                      ["strVal"]=&gt; string(5) "Proba" 
                  } 
              } 
          } 
      } 
      [2]=&gt; array(6) { 
          ["file"]=&gt; string(32) "C:\localhost\www\test5\index.php" 
          ["line"]=&gt; int(208) 
          ["function"]=&gt; string(9) "TestData1" 
          ["class"]=&gt; string(10) "SoapClient" 
          ["type"]=&gt; string(2) "-&gt;" 
          ["args"]=&gt; array(1) { 
              [0]=&gt; array(2) { 
                  ["iVal"]=&gt; int(1) 
                  ["strVal"]=&gt; string(5) "Proba" 
              } 
          } 
      } 
  } 
  ["faultstring"]=&gt; string(142) "Cannot process the message because the content type 'text/xml; charset=utf-8' was not the expected type 'application/soap+xml; charset=utf-8'." 
  ["faultcode"]=&gt; string(4) "HTTP" 
  } 
  </code></pre>
  
  <p>GET LAST RESPONSE :</p>
  
  <p>REQUEST HEADERS:</p>
  
  <pre><code>POST /DPWebService/CardsService.svc/ICardsService HTTP/1.1
  Host: d67v7tg1
  Connection: Keep-Alive
  User-Agent: PHP-SOAP/5.2.9-1
  Content-Type: text/xml; charset=utf-8
  SOAPAction: "http://tempuri.org/ICardsService/TestData1"
  Content-Length: 254
  </code></pre>