WCF wsdlexception(at/html):faultCode=INVALID_WSDL

WCF 部署正常,通过浏览器查看服务也OK,但是通过SOAP UI创建客户端请求时就异常:

wsdlexception(at/html):faultCode=INVALID_WSDL: Expected element '{http://schemas.xmlsoap.org/wsdl/}definitions'

图示:

经过一下午的问题排查后,原因是访问服务域名地址中带下划线,下划线 (_) 被 DNS 标准禁止的,会解析异常,后修改去掉下划线,问题解决。

原文地址:https://www.cnblogs.com/thankyou555/p/3425177.html