Hari Babu

Hari Babu

  • NA
  • 83
  • 0

WCF Redirect Query

Dec 21 2017 1:55 AM
Hi All,
I have requirement that WCF web method has to return 302 http response code along with url and 4 parameters.
i have implemented using below code
WebOperationContext.current.OutgoingResponse.Statuscode=
System.Net.HttpStatusCode.Redirect;
WebOperationContext.Current.OutgoingResponse.Header.Add("Location",url);
Please advice any better way to handle the requirement.

Answers (2)