Redirection in web service
I am new to webservice. What I am trying to do is redirect the page in webservice?
How do I do it? It's giving error for the following code.When I am invoking it from the web service directly it works fine, but when I access from my web app it throws unhandled error.
The method in web service:
[WebMethod]
public string hello()
{
//string apppath;
Context.Response.AddHeader("Location","http://localhost/abcd/pageA.aspx");
Context.Response.StatusCode = 307;
return null;
}