SOAP Fault

 SOAP Fault

作者:w3pop.com 翻译/整理:w3pop.com
<script type="text/javascript"> </script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"> </script>

The 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
描述
VersionMismatchFound an invalid namespace for the SOAP Envelope element
为SOAP包络(Envelope)元素找出一个无效的命名空间
MustUnderstandAn immediate child element of the Header element, with the mustUnderstand attribute set to "1", was not understood
如果Header 元素中的直接子元素的“mustUnderstand” 设置为1,那表示这个子元素不可识别。
ClientThe message was incorrectly formed or contained incorrect information
信息格式错误或包含了错误信息
ServerThere was a problem with the server so the message could not proceed
由于服务器的错误而导致信息不能被处理
<script type="text/javascript"> </script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"> </script>
 
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值