Hari Babu

Hari Babu

  • 0
  • 79
  • 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.

Brought to you by:

Answers (2)