Uploaded image for project: 'Axis-C++'
  1. Axis-C++
  2. AXISCPP-706

Axis-C++ fix for AXIS-1836 -- ClassCastException in SoapFaultBuilder reading fault

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • current (nightly)
    • None
    • SOAP
    • None

    Description

      Currently Axis Java clients crash reading soap fault generated by Axis C++ servers. This is because Axis Java assumes the <detail> element has sub elements, while Axis C++ generated <detail> elements just have text.
      Please refer to http://issues.apache.org/jira/browse/AXIS-1836 for details (no pun intended).

      A very simple fix for this is to add some code in SoapFault.cpp to simply wrap the detail text in another element like so:

      in int SoapFault::serialize(SoapSerializer& pSZ, SOAP_VERSION eSoapVersion):

      if(m_pFaultDetail)
      {
      pSZ.serialize("<detail><appSpecific>", NULL);
      m_pFaultDetail->serialize(pSZ);
      pSZ.serialize("</appSpecific></detail>\n", NULL);
      }

      (in two places)

      Attachments

        Activity

          People

            cdinapala Chinthana Dinapala
            hnordberg Henrik Nordberg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: