<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-
envelope" xmlns:m="http://
http://www.example.org">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetStockPrice>
<m:StockName>CSCO</m:StockName>
</m:GetStockPrice>
</soap:Body>
</soap:Envelope>
The World Wide Web Consortium (W3C) recommends
using the current SOAP specification, version 1.2. The
previous version of SOAP is 1.1. Although it is possible
for a SOAP node to support both versions of the protocol,
a protocol binding must be used for the version of SOAP
that the client intends to use.
As mentioned briefly at the beginning of this section,
SOAP can include optional fault messages. Table 6-4 lists
the options that are available for the optional fault
messages as well as which of them are optional.
Table 6-4 SOAP Fault Options
Fault ElementDescriptionOptional
faultCode Specifies the fault code of an error No
faultString Describes an error No
faultActor Specifies who caused a fault Yes
detail Applies specific error messages Yes
Table 6-4 shows the options available in SOAP version
1.2. faultString provides a description of an error