synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From balaji hari <to.haribal...@gmail.com>
Subject Access to validation error message
Date Fri, 21 Sep 2007 21:21:56 GMT

We tried to use validate mediator for validating XML against schema for web
service.
How do we access the validation error messages generated in
ValidateMediator?

Synapse1.0 sample_7 provides a way for generating static error message. 

<definitions xmlns="http://ws.apache.org/ns/synapse">
    <localEntry key="validate_schema" src="file:shipment.xsd"/>
    <in>
        <validate>
            <schema key="validate_schema"/>
            <on-fail>
                <!-- if the request does not validate againt schema throw a
fault -->
                 <makefault>
					<code value="tns:Receiver"
xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
					<reason expression="Test Error message"/>
				</makefault>
                <property name="RESPONSE" value="true"/>
            </on-fail>
        </validate>
    </in>
    <send/>
</definitions> 

Any pointers or suggestions would be greatly appreciated.

Thanks in advance
Balaji
-- 
View this message in context: http://www.nabble.com/Access-to-validation-error-message-tf4498668.html#a12830101
Sent from the Synapse - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
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