[
https://issues.apache.org/jira/browse/SYNAPSE-787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Heshan Suriyaarachchi resolved SYNAPSE-787.
-------------------------------------------
Resolution: Fixed
Fix Version/s: 2.1
Committed to the trunk(revision 1145123).
Thanks Miyuru for the contribution.
> Fault mediator creates an invalid SOAP 1.2 SOAP fault
> -----------------------------------------------------
>
> Key: SYNAPSE-787
> URL: https://issues.apache.org/jira/browse/SYNAPSE-787
> Project: Synapse
> Issue Type: Bug
> Reporter: Miyuru Wanninayaka
> Assignee: Heshan Suriyaarachchi
> Fix For: 2.1
>
> Attachments: SYNAPSE-787.diff
>
>
> 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
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]