synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Evanthika Amarasiri (JIRA)" <j...@apache.org>
Subject [jira] Created: (SYNAPSE-81) The options set inside the makefault mediator not set properly when a fault occurs
Date Thu, 22 Mar 2007 12:30:32 GMT
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: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


Mime
View raw message