Client found response content type of '', but expected 'text/xml'.

Shally Batra 1 Reputation point
2021-03-03T20:22:05.953+00:00

I am getting this error" Client found response content type of '', but expected 'text/xml'." the whole description below: What is the possible reason of this reason and what mistake I have made. Please help to understand IDUPDF00_FEB21_20210216 TEST_DUP_ControlTotals.pdf System.InvalidOperationException: Client found response content type of '', but expected 'text/xml'. The request failed with an empty response. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at ST_7abfb7b4ee6e4c71ad340cba45c7807e.RS2005.ReportingService2005.GetReportParameters(String Report, String HistoryID, Boolean ForRendering, ParameterValue[] Values, DataSourceCredentials[] Credentials) at ST_7abfb7b4ee6e4c71ad340cba45c7807e.ScriptMain.SaveReport(String localpath, String reportServiceURL, String reportServiceExecURL, String reportName, String ReportPath, Int32 FeedFileKey) IDUPDF00_FEB21_20210216 TEST_DUP_ErrorSummary.pdf System.InvalidOperationException: Client found response content type of '', but expected 'text/xml'. The request failed with an empty response. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at ST_7abfb7b4ee6e4c71ad340cba45c7807e.RS2005.ReportingService2005.GetReportParameters(String Report, String HistoryID, Boolean ForRendering, ParameterValue[] Values, DataSourceCredentials[] Credentials) at ST_7abfb7b4ee6e4c71ad340cba45c7807e.ScriptMain.SaveReport(String localpath, String reportServiceURL, String reportServiceExecURL, String reportName, String ReportPath, Int32 FeedFileKey)

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,061 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Joyzhao-MSFT 15,631 Reputation points
    2021-03-04T05:50:03.123+00:00

    Hi @Shally Batra ,
    According to your description, you come across an error “client found response content type of ", but expected 'text/xml'. The Request failed with an empty response.” when you open a report.

    In Reporting Service, this error is caused by calling web services failure. For rendering a report, we should add execution endpoint to URL. ReportExecution2005 endpoint takes effect when developers customize report processing and rendering from a report server. In your scenario, the issue could be the wrong web services URL. The correct URL should looks like: http://hostname/ReportServer/ReportExecution2005.asmx.

    For more information, please refer to these two similar threads below:
    Client found response content type of '', but expected 'text/xml'

    Reference:
    Report Server Web Service Endpoints
    Best Regards,
    Joy


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.