概述
SOAP Fault
作者:w3pop.com 翻译/整理:w3pop.comThe optional SOAP Fault element is used to hold error and status information for a SOAP message.
可选择的SOAP错误元素的作用是:保存SOAP信息中的错误信息和状态信息。
The SOAP Fault Element
SOAP错误信息
An error message from a SOAP message is carried inside a Fault element.
SOAP信息中包含的错误信息位于“错误元素”中。
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.
如果错误元素是存在的,那它肯定以主体元素的子元素形式出现。错误元素只能在SOAP元素中出现一次。
The SOAP Fault element has the following sub elements:
SOAP错误元素含有以下子元素:
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 |
SOAP Fault Codes
SOAP错误代码
The faultcode values defined below must be used in the faultcode element when describing faults:
以下定义的错误代码值必须是用于错误代码元素(描述错误时):
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 元素中的直接子元素的“mustUnderstand” 设置为1,那表示这个子元素不可识别。 |
Client | The message was incorrectly formed or contained incorrect information 信息格式错误或包含了错误信息 |
Server | There was a problem with the server so the message could not proceed 由于服务器的错误而导致信息不能被处理 |
最后
以上就是感动白羊为你收集整理的SOAP Fault 的全部内容,希望文章能够帮你解决SOAP Fault 所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复