以下AxisFault是什么意思?
这是否意味着:
或
NB。我是网络服务的新手
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1c) was found in the element content of the document.
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1c) was found in the element content of the document.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
答案 0 :(得分:11)
如果您的应用程序尊重SOAP错误代码的可扩展性,那么这意味着您的服务器收到了SOAP消息但无法解析它。
invalid XML character (Unicode: 0x1c) was found in the element content of the document
消息应该是错误指示的好指标。
您的服务器抛出异常,Axis将其作为SOAP Fault发送给客户端。 faultCode表示服务器错误。请注意,Server.userException
错误代码不是标准值,它只是更具体的服务器错误代码类型。
默认的SOAP faultcode值以可扩展的方式定义,允许定义新的SOAP faultcode值。该机制使用点(。)来定义更具体的错误类型。它表示点左边的内容是比右边的值更通用的故障代码值。请参阅规范here。
所以我猜Server.userException
是一种相关的方式,说服务器发生异常,但不是与服务器严格相关但与客户端发送的内容(.userException
)有关。至少这是我认为作者的想法。这是给你发现的:D。