开发者

SoapHttpClientProtocol throws NameResolutionFailure, not ProxyNameResolutionFailure

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜