Asked originally on StackOverflow at http://stackoverflow.com/questions/34187789/possible-to-read-response-body-of-a-ria-service-call, I was told I might find more help here.
We're somewhere around round 20 in the epic battle between RIA services and corporate firewall. Since the requests occasionally contain "PHP injection attacks" against our IIS-hosted .NET RIA server, I wanted to be a bit proactive in separating the actual program errors from just whenever the firewall has performed some arbitrary and invalid denial.
Is it possible to get the actual response content of the message returned via a RIA service call when the call returns an error?
My basic handling call is as such:
protected void AfterSubmitChanges(SubmitOperation so)
{
if (so.HasError)
{
so.Error.Report();
so.MarkErrorAsHandled();
CancelChanges();
}
else
{
OnCommitCompleted();
}
}
Somewhere in there can I get the raw response body, which I'd then be able to parse against the standard blocked-by-firewall page?
This content has not been rated yet.
15
Reputation
1
Total posts