我在使用带有SSRS的SQL Server 2008R2。在我的c#项目中,基于微软网站的示例,我能够输出PDF报告。我切换到SQL Server 2012,使用相同的端点http://localhost/ReportServer/reportexecution2005.asmx?wsdl
重新设置Web服务。
我确保2008R2的SSRS没有运行,2012年是。
我在调试期间在项目中收到的错误是:
System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction:
http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/LoadReport. at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest() at
System.Web.Services.Protocols.SoapServerProtocol.Initialize() at
System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response) at
System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)