How to make a Webservice request follow a redirect?

孤人 提交于 2019-12-19 09:52:45

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!