问题
My application neeeds to access a third part web service. Of late, they have introduced a load balancer, which redirects to the server. Because of this the webservice gets a 302 - Redirect error as response.
In the SOAPUI, I was able to enable a property called "Follow Redirect", and because of this service followed the redirect and served by the server.
Now is there a similar propety that can be turned on in the code, which would make the webservice follow the request?
(The calling code is java and the webservice is in .net)
回答1:
This needs to be supported by the library implementing the actual call to the web service, and there is not a generic way of setting this.
来源:https://stackoverflow.com/questions/2573858/how-to-make-a-webservice-request-follow-a-redirect