Tawani
Tawani

Reputation: 11198

ASP.NET Webservice HTTP Redirect

My website posts orders to partner sites using web services. Recently, one of our partners implemented load balancing on their servers and our web requests are failing because they get redirected to other URLs.

Normally when we test they pass because the URI is static but in production they fail because the requests get redirected.

e.g. redirecting from http://mysite.com/services/myservice.asmx to http://subnet.mysite.com/services/myservice.asmx

Any ideas?

Upvotes: 0

Views: 1409

Answers (1)

Tawani
Tawani

Reputation: 11198

Just make sure you set the AllowAutoRedirect property on the client to true.

Upvotes: 1

Related Questions