当前位置: 首页 > 网络学院 > XML相关教程 > SOAP > SOAP Fault

SOAP
SOAP 介绍
SOAP 语法
SOAP Envelope
SOAP Header
SOAP Body
SOAP Fault
SOAP HTTP Binding
SOAP 实例
SOAP 总结

SOAP Fault


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 737 ::
收藏到网摘: n/a

The optional SOAP Fault element is used to hold error and status information for a SOAP message.
可选择的 SOAP Fault 元素用于保存 SOAP 信息中的错误信息和状态信息。


The SOAP Fault Element
SOAP错误信息

An error message from a SOAP message is carried inside a Fault element.
来自 SOAP 消息的错误消息被携带于 Fault 元素内部。

If a Fault element is present, it must appear as a child element of the Body element. A Fault element can only appear once in a SOAP message.
如果已提供了 Fault 元素,则它必须是 Body 元素的子元素。在一条 SOAP 消息中,Fault 元素只能出现一次。

The SOAP Fault element has the following sub elements:
SOAP 的 Fault 元素用于下列子元素:

Sub Element
子元素
Description
描述
<faultcode> A code for identifying the fault
供识别故障的代码
<faultstring> A human readable explanation of the fault
可供人阅读的有关故障的说明
<faultactor> Information about who caused the fault to happen
有关是谁引发故障的信息
<detail>

Holds application specific error information related to the Body element
保存涉及 Body 元素的应用程序专用错误信息

SOAP Fault Codes
SOAP Fault 代码

The faultcode values defined below must be used in the faultcode element when describing faults:
在下面定义的 faultcode 值必须用于描述故障时的 faultcode 元素中:

Error
错误
Description
描述
VersionMismatch Found an invalid namespace for the SOAP Envelope element
SOAP Envelope 元素的无效命名空间被发现
MustUnderstand An immediate child element of the Header element, with the mustUnderstand attribute set to "1", was not understood
Header 元素的一个直接子元素(带有设置为 "1" 的 mustUnderstand 属性)无法被理解。
Client The message was incorrectly formed or contained incorrect information
消息被不正确地构成,或包含了不正确的信息。
Server There was a problem with the server so the message could not proceed
服务器有问题,因此无法处理进行下去。

评论 (0) All

登陆 | 还没注册?