- Web Services Testing with soapUI
- Charitha Kankanamge
- 278字
- 2021-08-05 18:39:24
SOAP Faults
Before concluding our discussion on web services and the associated concepts, we should look at the fault handling mechanism of web services. Faults can be returned by web services due to various reasons. For example, if the request message does not conform to the XML schema of web service, the service responds back with a SOAP Fault. The SOAP Fault element is used to carry such faults occurred during web service communication. This element must be included inside body of a SOAP message. A typical SOAP 1.1 Fault message consists of the following child elements:
faultcode
: Thefaultcode
element is used to define the type of the fault. For example, if the problem of message transmission is due to the server, the associated faultcode isServer
. Similarly, we can useVersionMismatch
,MustUnderstand
andClient
error codes as appropriate.faultstring
: Thefaultstring
element is intended to provide a human readable explanation about the fault.faultactor
: Thefaultactor
element provides an indication about the responsible party who caused the fault to occur in the message path.detail
: Thedetail
element is used to carry application specific error information related to the body element. For example, if the payload of the SOAP request is unable cannot be processed by web service, the associated response should include the detail element inside the SOAP Fault.
In the case of SOAP v1.2 messaging, faultcode
is renamed to Code
and faultstring
is renamed to Reason
. In addition to that, a SOAP v1.2 Fault message can include the optional child elements, Node
, Role,
and Detail
. A detailed explanation of SOAP 1.1 Faults can be found at http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383507. SOAP 1.2 Faults are explained in detail at http://www.w3.org/TR/soap12-part1/#soapfault.
- Hands-On Machine Learning with Microsoft Excel 2019
- Architects of Intelligence
- 新型數(shù)據(jù)庫(kù)系統(tǒng):原理、架構(gòu)與實(shí)踐
- iOS and OS X Network Programming Cookbook
- 數(shù)據(jù)架構(gòu)與商業(yè)智能
- Learning Proxmox VE
- Oracle 12c云數(shù)據(jù)庫(kù)備份與恢復(fù)技術(shù)
- Oracle RAC日記
- 探索新型智庫(kù)發(fā)展之路:藍(lán)迪國(guó)際智庫(kù)報(bào)告·2015(下冊(cè))
- Unity 2018 By Example(Second Edition)
- 區(qū)塊鏈+:落地場(chǎng)景與應(yīng)用實(shí)戰(zhàn)
- 數(shù)據(jù)庫(kù)查詢優(yōu)化器的藝術(shù):原理解析與SQL性能優(yōu)化
- 數(shù)據(jù)庫(kù)原理與設(shè)計(jì)實(shí)驗(yàn)教程(MySQL版)
- 離線和實(shí)時(shí)大數(shù)據(jù)開(kāi)發(fā)實(shí)戰(zhàn)
- 基于數(shù)據(jù)發(fā)布的隱私保護(hù)模型研究