title: Unsupported content type: text/plain; charset=ISO-8859-1
body: <p>I have a webservice which has to return player details in response. The problem is, when I send same request in SoapUI I get valid response, but when I do this through Java, I get back this message in </p>
  
  <p><code>&lt;faultstring&gt; Unsupported content type: text/plain; charset=ISO-8859-1 &lt;/faultstring&gt;</code>. </p>
  
  <p>Any ideas why it is the problem?</p>
  
  <p>This is request I am sending:</p>
  
  <pre><code>&gt; &lt;soapenv:Envelope
  &gt; xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
  &gt; xmlns:gen=" "&gt;   
  &gt; &lt;soapenv:Header/&gt;   
  &gt; &lt;soapenv:Body&gt;
  &gt;       &lt;gen:GetPlayerDetails&gt;
  &gt;          &lt;request&gt;
  &gt;             &lt;systemUID&gt;C_GS01&lt;/systemUID&gt;
  &gt;             &lt;sessionID&gt;TVM0MgAAB9IAAAFEjXyfxbvZ2oU_&lt;/sessionID&gt;
  &gt;          &lt;/request&gt;
  &gt;       &lt;/gen:GetPlayerDetails&gt;    
  &gt; &lt;/soapenv:Body&gt;
  &gt; &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p><strong>SOLVED</strong> thanks to @helderdarocha
  Made some changes (last line) in my HTTP client class:</p>
  
  <pre><code>        HttpClient httpclient = HttpClientBuilder.create().build();
          StringEntity strEntity = new StringEntity(request);
          HttpPost post = new HttpPost("http://10.47.44.163:8080" + endPointURI);
          post.addHeader("Content-type", "text/xml");
  </code></pre>