Is possible to get HTTP status code in side SOAP Extensions C#?

1.6k Views Asked by At

I create C# webservice with soap extension base on this article : https://msdn.microsoft.com/en-us/library/esw638yk(v=vs.71).aspx for keep soap log,Is it possible to get http status code in soap extension section.

1

There are 1 best solutions below

0
MAXZZXAM On BEST ANSWER

I got an answer by add

HttpContext ctx = HttpContext.Current;
String HTTPCODE = ctx.Response.StatusCode.ToString();