Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-439

Axis2 client has a ClassCastException if there is a SOAP fault when running with REST support

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.95
    • kernel
    • None
    • IBM JDK 1.5, Fedora Core 4 [Kernel v. 2.6.13.x]

    Description

      When running with REST support, if there is a SOAP fault (in my case, I attempted to call an invalid service), the client application will encounter a ClassCastException (it should encounter an AxisFault).

      The error is caused because when a response is received from the server, the StAXOMBuilder is used to build the envelope (instead of the StAXSOAPModelBuilder); this builds a generic OM, not a SOAP model.

      Attachments

        1. axis2-439.patch
          1 kB
          Deepak Bhole

        Activity

          People

            dbhole Deepak Bhole
            dbhole Deepak Bhole
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: