The Fault Subelement
  • The Fault subelement is optional.
  • The Fault subelement appears only in response messages. It must appear as a child element of the Body element.
  • The Fault subelement can further contain the following subelements:
    • faultcode
    • faultstring
    • faultactor
    • detail
  • The code example illustrates the use of the Fault subelements:
    • Client.InvalidRequest within the
      faultcode subelement is an error code and
      indicates that the client application sent an
      invalid request to the server.
    • Invalid Request: Divide operation
      not supported
      within the faultstring
      subelement describes the error code.
    • http://school_library.com/transactions/
      defaulters.jsp
      within the faultactor
      subelement indicates the URL where the error occurred.
    • The detail subelement provides details of the error, such as Operation not supported. It indicates that the client request for dividing, perhaps a number, was not supported.

 

  » View Media Description
Click the Next button to continue.