开发者

Globally set AllowAutoRedirect in site?

I know you can set the AllowAutoRedirect after you instantiate the web service but is there a way to do it in the applica开发者_JAVA百科tions config? We are making lots of calls and was hoping there is a magic pill rather than acupuncture.


Answering this long gone post, because I'm currently dealing with it.

Not true, the reference to the WebService is actually a class that has a constructor where the AllowAutoRedirect can be manually set.

Look for Reference.cs inside your webservice folder under Web References folder.

In the constructor you want to write:

this.AllowAutoRedirect = true;

That way every time the web service is instantiated the property is set to true.


Answering this as "No...there isn't".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜