Why WSO2 ESB is not providing any XSD to XSD or WSDL mapping tool? I am from TIBCO background, working now a days on WSO2 platform. Please give your feedback on my question.
AFAIK如果我们想将一种数据格式转换为另一种数据格式,则可以使用xslt中介器。
you should use the validate mediator to check your incoming request against a xsd. sample below:
<validate source="//RequestParentNode">
<schema key="conf:/sampleXSD.xml"/>
<on-fail>
<log level="custom">
<property name="MESSAGE" expression="get-property('ERROR_MESSAGE')"/>
</log>
<makefault version="soap11">
<code xmlns:soap11Env="http://schemas.xmlsoap.org/soap/envelope/" value="soap11Env:VersionMismatch"/>
<reason expression="get-property('ERROR_MESSAGE')"/>
</makefault>
<send/>
</on-fail>
</validate>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.