SOAP
Fault
element within Body
.faultcode
and
faultstring
sub-elements which must appear.faultcode
is a
QName
from XMLSchema. The
faultstring
's content is a human-readable
string.<?xml version='1.0' ?> <env:Envelope xmlns:env="http://www.w3.org/2001/12/soap-envelope" xmlns:f='http://www.w3.org/2001/12/soap-faults'> <env:Body> <env:Fault> <faultcode>env:Receiver</faultcode> <faultstring>Processing Error</faultstring> <detail> <e:myfaultdetails xmlns:e="http://example.org/faults"> <message>Name does not match card number</message> <errorcode>999</errorcode> </e:myfaultdetails> </detail> </env:Fault> </env:Body> </env:Envelope>
soap-envelope
schema defines the
faultcodes: VersionMismatch
,
MustUnderstand
, DTDNotSupported
,
DataEncodingUnknown
, Sender
,
Receiver
.MustUnderstand
fault should also include
information about which element was not understood.10 of 29