WSO2 esb 验证器调解器未显示确切的故障

WSO2 esb validator mediator not showing exact failure

我配置了一个 WSO2 验证器调解器。

 <validate cache-schema="true">
        <schema key="gov:/myxsd/Student.xsd"/>

        <on-fail>

调解器正在执行失败块;但不显示什么是验证 failing.How 我能找到失败的确切原因吗?

您可以使用日志调解器来记录您的错误,或者使用 'makefault' 调解器和 'respond'。例如:

<on-fail>
   <log category="ERROR" level="custom">
       <property name="message" value="Validation unsuccessful"/>
       <property expression="get-property('MessageID')" name="message_id"/>
       <property expression="get-property('ERROR_MESSAGE')" name="error_message"/>
   </log>
</on-fail>