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

AXIS2 codegen ignore faultstring when generating Exception objects.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.6.1
    • 1.6.2, 1.7.0
    • codegen
    • None

    Description

      Consider following method that throws a Exception and SOAP message on wire.

      public void throwException(String message) throws MyException

      { throw new MyException( "An exception thrown at ExceptionThrower with the message " + message); }

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Body>
      <soapenv:Fault>
      <faultcode>soapenv:Server</faultcode>
      <faultstring>An exception thrown at ExceptionThrower with the message message1</faultstring>
      <detail>
      <ns:SimpleServiceMyException xmlns:ns="http://adobe29.sample">
      <MyException xsi:type="ax21:MyException" xmlns="http://adobe29.sample" xmlns:ax21="http://adobe29.sample/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
      </ns:SimpleServiceMyException>
      </detail>
      </soapenv:Fault>
      </soapenv:Body>
      </soapenv:Envelope>

      In client side it's not possible to see above faultstring message and losings important details return by the server.

      Attachments

        Activity

          People

            sagara Sagara Gunathunga
            sagara Sagara Gunathunga
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: