Click here to Skip to main content
15,900,108 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

i am getting an error like this when calling render method in reporting.




MSIL
System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices/Render.
  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)
Posted

1 solution

I believe the URL for the ReportExecutionService is http://<server>/ReportServer/ReportExecutionService.asmx

That's probably your problem :)
 
Share this answer
 
Comments
deepak thomas 8-Oct-10 2:27am    
i have set the url as you said.But now i got error like this

Client found response content type of '', but expected 'text/xml'.
The request failed with an empty response
Nathan St 8-Oct-10 3:40am    
That's progress at least. An empty response from the server probably means that some of the parameters you're passing in your request aren't correct. I'm afraid I can't help with that unless you post your code :(
deepak thomas 12-Oct-10 2:25am    
public byte[] RetrieveReport()
{
Warning[] optionalWarnings = null;

// local variables for ReportingService
byte[] ResultStream;
ParameterValue [] parameters = (ParameterValue [])this.parameterValues.ToArray(typeof(ParameterValue));
string[] StreamIdentifiers;
string optionalString = null;

ResultStream = _rs.Render("/" + this._reportFolder + "/" + this._reportName, this.ReportType,
null, "<deviceinfo><streamroot>/" + this._reportFolder + "/",
parameters, null, null, out optionalString, out optionalString, out parameters,
out optionalWarnings, out StreamIdentifiers);

return ResultStream;

}
deepak thomas 28-Oct-10 6:24am    
The actual problem was with the web reference added.It should be like this
http://localhost/Name of report server/ReportService.asmx.Now it is working perfectly.Thanks for all the help given.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900