You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by nvaneijck <n....@ncim.nl> on 2012/03/27 11:39:35 UTC

Error when performing XSD validation after CXF endpoint in PAYLOAD mode

Hi,

I want to produce a webservice using CXF endpoint in PAYLOAD mode. This
works fine, and now I want to add a schema validation of the request in the
payload using XSD. I tried this:

<cxf:cxfEndpoint id="wspoc"
	address="http://localhost:8181/webservices/ws-poc-1"
	endpointName="s:WsPocPort"
	serviceName="s:WsPocService"
        wsdlURL="repository/wsdl/ws-poc-1.1.wsdl"
        xmlns:s="http://mine/ws-poc/1">
        <cxf:properties>
            <entry key="dataFormat" value="PAYLOAD"/>
        </cxf:properties>
</cxf:cxfEndpoint>
<camelContext xmlns="http://camel.apache.org/schema/blueprint">
    <route>
        <from uri="wspoc"/>
	<to uri="validator:file:repository/xsd/schema.xsd"/>
        ...
    </route>
</camelContext>

But I get this exception: 

org.apache.camel.processor.validation.NoXmlBodyValidationException: No XML
body could be found on the input message. Exchange[Message: <ns:WsPocRequest
xmlns:ns="http://mine/ws-poc/ws-poc-request/1">
  ...  </ns:WsPocRequest>]

Can somebody help me out here please?

--
View this message in context: http://servicemix.396122.n5.nabble.com/Error-when-performing-XSD-validation-after-CXF-endpoint-in-PAYLOAD-mode-tp5597391p5597391.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.