开发者

SoapHttpClientProtocol throws NameResolutionFailure, not ProxyNameResolutionFailure

开发者 https://www.devze.com 2023-01-27 17:31 出处:网络
SoapHttpClientProtocol throws a WebException with status NameResolutionFailure when the proxy name is invalid. How then can I tell if it\'s the proxy or the destination that is in err?

SoapHttpClientProtocol throws a WebException with status NameResolutionFailure when the proxy name is invalid. How then can I tell if it's the proxy or the destination that is in err?

I'd rather not perform a check if the proxy server exists when a NameResolutionFailure shows up. The only think I can think to do is check the 开发者_JAVA百科WebException.message property and see if it contains the proxy name vs. the destination name, but this seems icky. Is it the best available?


Check the message property, I suppose :/

0

精彩评论

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

关注公众号