You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Miyuru Wanninayaka (JIRA)" <ji...@apache.org> on 2011/07/07 14:06:16 UTC
[jira] [Commented] (SYNAPSE-787) Fault mediator creates an invalid
SOAP 1.2 SOAP fault
[ https://issues.apache.org/jira/browse/SYNAPSE-787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13061237#comment-13061237 ]
Miyuru Wanninayaka commented on SYNAPSE-787:
--------------------------------------------
SOAP fault generated after applying patch
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<soapenv:Fault>
<soapenv:Code>
<soapenv:Value>soapenv:Receiver</soapenv:Value>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en">systemError</soapenv:Text>
</soapenv:Reason>
<soapenv:Detail>System out of resources</soapenv:Detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
> 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
> 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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org