title: getEntity().getContent() method of HttpResponse only have </ERROR>
body: <p>I was trying to get a xml response  through web service call by using Default httpClient but not able do so
                  as error message    coming in response.getEntity().getContent().
                  line String veraible always comming  though my response code 200 comming.
          DefaultHttp client object is created from another method<br>
          Here is my code--</p>
  
  <pre><code>            try {
              HttpPost post = new HttpPost(tmsURL);
              post.setHeader("Content-Type", "text/xml;charset=utf-8");
              List&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;(2);
              nameValuePairs.add(new BasicNameValuePair(METHOD_PARAM, method));
              nameValuePairs.add(new BasicNameValuePair(XML_PARAM, xml));
              UrlEncodedFormEntity entity_st=new UrlEncodedFormEntity(nameValuePairs,"UTF-8");
              post.setEntity(entity_st);
  
  
                              HttpResponse response = client.execute(post,localcontext);
  
  
                              responseCode = response.getStatusLine().getStatusCode();
  
                              if (responseCode == HttpStatus.SC_OK) {
                                   BufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
                                    String line = "";
                                    while ((line = rd.readLine()) != null) {
                                      System.out.println(line);
                                    }
              }
  } catch (Exception e) {
                  e.printStackTrace();
                  logger.info("Exception occured in httpClientSendRequest() : "
                          + printStackTrace(e));
                  result = buildXmlErrorMessage("", e.getMessage(), "");
              } finally {
                  // post.releaseConnection();
              }
  
      please help me if anybody have any solution to solve the issue
  </code></pre>