Feedback

  • Contents
 

Fault Messages

When a message is rejected, the server generates a Fault, or error message.  Faults are commonly caused by unrecognizable header fields, messages that cannot be authenticated, or problems that occurred when the server attempted to invoke a method or process the message.

Listing 6: A Typical Fault Response Message

<S:Envelope xmlns:S='http://schemas.xmlsoap.org/soap/envelope/'>
  <S:Body>
    <S:Fault>
       <faultcode>S:Server</faultcode>
       <faultstring>S:Server</faultstring>
       <detail>
         <e:mydetails xmlns:e="http://foo.com/detail">Some Error Message</e:mydetails>
       </detail>
    </S:Fault>
  </S:Body>
</S:Envelope>