Hi, Your xpath is not correct.. It needs to be like; <validate xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" source="/soapenv:Envelope/soapenv:Body/huisdier">
Rgds, -Ratha. ________________________________ From: De Vleeschauwer Nele <[email protected]> To: [email protected] Sent: Wednesday, 20 July 2011, 20:10 Subject: OMNode exception on validation mediator Hi, I'm new to Apache Synapse. I've already done some tests with proxy services and different type of endpoint which all seem to work correctly. I would like to extend one of my proxy services with a validation mediator. But each time when I call my proxy service, I'm getting the following error message back: ValidateMediator The evaluation of the XPath expression /huisdier did not result in an OMNode : null Below the content of my proxy service: <proxy xmlns="http://ws.apache.org/ns/synapse" name="validateXMLProxyNDV" statistics="disable" trace="enable" transports="http,https"> <target endpoint="fileshareEndpointNDV"> <inSequence> <log category="INFO" level="full" separator=","/> <validate source="/huisdier" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <on-fail> <log category="TRACE" level="simple" separator=","> <property name="Text" value="XML file is not valid"/> </log> </on-fail> <schema key="/_system/NBB/schema/huisdier.xsd"/> </validate> <log category="TRACE" level="simple" separator=","> <property name="Text" value="Message is valid"/> </log> <property action="set" name="OUT_ONLY" scope="default" type="STRING" value="true"/> </inSequence> </target> </proxy> And this is the message we are receiving: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body> <huisdier xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="huisdier.xsd"> <soort>Kanarie</soort> <naam>Geeltje</naam> <geboortedatum>2000-02-15</geboortedatum> </huisdier></soapenv:Body></soapenv:Envelope> Can someone tell me what is wrong with my xpath expression ? ----------------------------------------- Visit our website! http://www.nbb.be "DISCLAIMER: The content of this e-mail message should not be construed as binding on the part of the National Bank of Belgium (NBB) unless otherwise and previously stated. The opinions expressed in this message are solely those of the author and do not necessarily reflect NBB viewpoints, particularly when the content of this message, or part thereof, is private by nature or does not fall within the professional scope of its author."
