The XML code and value should be
Example 6-5 Sample SOAP Fault
Click here to view code image
<env:Envelope
xmlns:env="http://www.w3.org/2003/05/soap-
envelope"
xmlns:m="http://www.example.org/timeouts"
xmlns:xml="http://www.w3.org/XML/1998/namespace">
<env:Body>
<env:Fault>
<env:Code>
<env:Value>env:Sender</env:Value>
<env:Subcode>
<env:Value>m:MessageTimeout</env:Value>
</env:Subcode>
</env:Code>
<env:Reason>
<env:Text xml:lang="en">Sender
Timeout</env:Text>
</env:Reason>
<env:Detail>
<m:MaxTime>P5M</m:MaxTime>
</env:Detail>
</env:Fault>
</env:Body>
</env:Envelope>
Note
The examples used in this chapter are all based on
SOAP version 1.2.
Remote-Procedure Calls (RPCs)
Remote-procedure calls (RPCs) make it possible to
execute code or a program on a remote node in a
network. RPCs behave as if the code were executed
locally on the same local node, even though the code is
executed on a remote address space, such as another