The options set inside the makefault mediator not set properly when a fault 
occurs
----------------------------------------------------------------------------------

                 Key: SYNAPSE-81
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-81
             Project: Synapse
          Issue Type: Bug
    Affects Versions: 1.0-RC1-B2
         Environment: Windows XP, j2sdk1.4.2_13
            Reporter: Evanthika Amarasiri


Created the following sequence and tried to validate against an invalid xsd. 
Since the validation fails, a saop fault should be returned.

<definitions xmlns="http://ws.apache.org/ns/synapse";>
<localEntry key="filter_validate_schema"  
src="file:repository/conf/sample/resources/validate/div_schema.xsd"/>
<in>
        <validate>
                <schema key="filter_validate_schema"/>
                <on-fail>
                    <makefault trace="enable">
                        <code value="tns:Receiver" 
xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
                        <reason value="Invalid custom quote request" />
                        <detail value="Detailed description of the soap fault" 
/>
                    </makefault>
                    <send/>
                </on-fail>
        </validate>
        <send>
                <endpoint>
                        <address  
uri="http://localhost:9001/axis2/services/Division"/>
                </endpoint>
        </send>
</in>
<out>
        <log level="full" separator=",">
                <property name="after_filt_prop" value="Incoming Message 
getting filtered -  After"/>
        </log>
        <send/>
</out>
</definitions>

When checked the synapse console, I realized that the soap fault which is 
created is blank.

<?xml version='1.0' encoding='utf-8'?>
        <soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
                <soapenv:Body>  
                        <soapenv:Fault>
                                <faultcode>
                                </faultcode>
                                <faultstring>
                                </faultstring>
                                <detail>
                                </detail>
                        </soapenv:Fault>
        </soapenv:Body>
</soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to