Hi Teo,
I am trying to trace the soap url using this code for finding out which operation has been performed on the report manager.
if (request.Headers["SOAPAction"] == null)
{
// GET request
Trace.WriteLine("request.Url = " + request.Url);
}
else
{
// POST request
System.IO.Stream stream = request.InputStream;
byte[ requestBody = new byte[stream.Length];
stream.Read(requestBody, 0, requestBody.Length);
request.InputStream.Position = 0L;
Trace.WriteLine("request.Url = " + Encoding.ASCII.GetString(requestBody));
}
The problem is I'm not able to trace a request for update/delete report history snapshot and update/delete report subscription.
When I click history tab of a report I get this url :
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<ListReportHistory xmlns="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices">
<Report>/Sample Reports/Employee Details Report</Report>
</ListReportHistory>
</soap:Body>
</soap:Envelope>
I was expecting to get similar url for DeleteReportHistorySnapshot but I get this one instead:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<BatchHeader xmlns="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices">
<BatchID>be707613-46cf-418e-88db-80d16f57a260</BatchID>
</BatchHeader>
</soap:Header>
<soap:Body><ExecuteBatch xmlns="http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices" />
</soap:Body>
</soap:Envelope>
Could you please give any hints on how do I find out what all is there in the BatchHeader that I get in this url or how do I identify that deleteReportHistorySnapshot has been called from report manager.