Uploaded image for project: 'Synapse'
  1. Synapse
  2. SYNAPSE-787

Fault mediator creates an invalid SOAP 1.2 SOAP fault

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.1
    • None
    • None

    Description

      Following configuration segment

      <property name="ERROR_CODE" value="Receiver"/>
      <property name="ERROR_MESSAGE" value="systemError"/>
      <makefault version="soap12">
      <code expression="get-property('ERROR_CODE')"/>
      <reason expression="get-property('ERROR_MESSAGE')"/>
      <detail expression="get-property('ERROR_DETAIL')"/>
      </makefault>

      creates a following SOAP fault

      <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
      <soapenv:Body>
      <soapenv:Fault>
      <soapenv:Code>
      <soapenv:Value>axis2ns7:Receiver</soapenv:Value>
      </soapenv:Code>
      <soapenv:Reason>
      <soapenv:Text>customerNotExist</soapenv:Text>
      </soapenv:Reason>
      <soapenv:Detail>System out of resources</soapenv:Detail>
      </soapenv:Fault>
      </soapenv:Body>
      </soapenv:Envelope>

      which has 2 errors.

      axis2ns7 is not defined
      soapenv:Text element does not has mandatory lang attribute [1]

      [1] http://www.w3.org/TR/soap12-part1/#reasontextelement

      Attachments

        1. SYNAPSE-787.diff
          1 kB
          Miyuru

        Activity

          People

            heshan Heshan Theekshana Suriyaarachchi
            miyuru Miyuru
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: