- 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.
- 公有云容器化指南:騰訊云TKE實戰與應用
- Python絕技:運用Python成為頂級數據工程師
- Word 2010中文版完全自學手冊
- 算法與數據中臺:基于Google、Facebook與微博實踐
- WS-BPEL 2.0 Beginner's Guide
- 一個64位操作系統的設計與實現
- 深入淺出 Hyperscan:高性能正則表達式算法原理與設計
- Mastering LOB Development for Silverlight 5:A Case Study in Action
- 聯動Oracle:設計思想、架構實現與AWR報告
- 數據庫查詢優化器的藝術:原理解析與SQL性能優化
- SQL Server 2012 數據庫教程(第3版)
- 數據庫基礎與應用
- Applying Math with Python
- Oracle數據庫性能優化的藝術
- 信息技術導論