WCF wsdlexception(at/html):faultCode=INVALID_WSDL
2013-11-15 13:32
921 查看
WCF 部署正常,通过浏览器查看服务也OK,但是通过SOAP UI创建客户端请求时就异常:
wsdlexception(at/html):faultCode=INVALID_WSDL: Expected element '{http://schemas.xmlsoap.org/wsdl/}definitions'
图示:
![](http://images.cnitblog.com/blog/44211/201311/15132426-25e7f2d10f624b868bfef60c1be84a67.jpg)
经过一下午的问题排查后,原因是访问服务域名地址中带下划线,下划线 (_) 被 DNS 标准禁止的,会解析异常,后修改去掉下划线,问题解决。
wsdlexception(at/html):faultCode=INVALID_WSDL: Expected element '{http://schemas.xmlsoap.org/wsdl/}definitions'
图示:
![](http://images.cnitblog.com/blog/44211/201311/15132426-25e7f2d10f624b868bfef60c1be84a67.jpg)
经过一下午的问题排查后,原因是访问服务域名地址中带下划线,下划线 (_) 被 DNS 标准禁止的,会解析异常,后修改去掉下划线,问题解决。
相关文章推荐
- faultCode=INVALID_WSDL: Expected element ‘{http://schemas.xmlsoap.org/wsdl/} WSDLExceptionfaultCode=
- [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMHTMLBodyElement.appendChild]" nsresult: "0x80004003
- [转]STL std:string引起的User breakpoint exception/User breakpoint called from code at
- java.io.StreamCorruptedException: invalid type code: AC解决办法
- Java JsonPath grab InvalidPathException in code, you must be catching Java 7's java.nio.file.InvalidPathException instead of JsonPath's com.jayway.jsonpath.InvalidPathExceptio
- java.io.StreamCorruptedException: invalid type code: AC异常和对象流锁机制问题
- java.io.StreamCorruptedException: invalid type code: AC
- The error code of the InvalidJadException
- C# 解决InvalidProgramException: Invalid IL code in System.Data.DataTable:get_Columns (): IL_0000: ret
- Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException : Error parsing WSD
- org.apache.zookeeper.KeeperException$InvalidACLException: KeeperErrorCode = InvalidACL for /f
- WCF 抛出FaultException<T>异常
- java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0 at java.util.ArrayList.throwIndexO
- 【WCF】错误处理(二):错误码―—FaultCode
- win7中delphi与svn冲突的解决(system exception (code 0xc0000008) at 0x7c91e4ff)
- SOAP: Uncaught SoapFault exception以及 XML error parsing WSDL from
- .java.io.StreamCorruptedException: invalid type code: AC解决办法
- WebService Caused by: javax.wsdl.WSDLException: WSDLException (at /soap:Envelope):
- java.io.StreamCorruptedException: invalid type code: AC解决办法
- WCF:The caller was not authenticated by the service. ---> System.ServiceModel.FaultException: The request for security token could not be satisfied because authentication failed.