title: Client found response content type of " but expected 'text/xml' The request failed with an empty response
body: <p>I have consumed the web service in windows application, when pass the request to get response getting an error.</p>
  
  <p>I have used WSE 2.0 to pass the credentials.</p>
  
  <pre><code>public string GetResponse(string sPersonnelAreaCode, string sCompanyCode)
  {
      try
      {
          WebReference.RIL_STAR_HCM_QueryEmployeeDetails_serviceagent objService1 = new WebReference.RIL_STAR_HCM_QueryEmployeeDetails_serviceagent();
          WebReference.fetchEmployeeListRequestEmployeeList[] objReqs = new WebReference.fetchEmployeeListRequestEmployeeList[1];
          WebReference.fetchEmployeeListRequestEmployeeList objReq1 = new WebReference.fetchEmployeeListRequestEmployeeList();
  
          WebReference.fetchEmployeeListResponseEmployeeList[] objResponse = new WebReference.fetchEmployeeListResponseEmployeeList[0];
          DataSet dsresult = new DataSet();
          objReq1.PersonnelAreaCode = sPersonnelAreaCode;
          objReq1.CompanyCode = sCompanyCode.ToString();
  
          UsernameToken token = new UsernameToken("***", "***", PasswordOption.SendPlainText);
          objService1.RequestSoapContext.Security.Tokens.Add(token);
          objReqs[0] = objReq1;
          //In the below line getting that error
          objResponse = objService1.fetchEmployeeList(objReqs);
      }
  }
  </code></pre>
  
  <p>Can anyone please help me?</p>