this is my xml : 

<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:cxf="http://camel.apache.org/schema/cxf";
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
       http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
       http://camel.apache.org/schema/cxf
http://camel.apache.org/schema/cxf/camel-cxf.xsd
       http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd";>

<camelContext id="dest_context"
xmlns="http://camel.apache.org/schema/spring";>

     <route>
       <from uri="jetty:http://localhost:8080/json?matchOnUriPrefix=true"/>
        <process ref = "findPolicyRequestProcessor"/>
        <to ref="serviceEndpoint"/>
        <process ref="findPolicyResponseProcessor"/>
        <marshal ref="xstream-default"/>
      </route>
      <dataFormats>
        <xstream id="xstream-utf8" encoding="UTF-8"/>
        <xstream id="xstream-default"/>
    </dataFormats>
  </camelContext>

<bean id="findPolicyResponseProcessor"
class="com.camel.processor.FindPolicyResponseProcessor"/>
<bean id="findPolicyRequestProcessor"
class="com.camel.processor.FindPolicyRequestProcessor"/>
<cxf:cxfEndpoint id="serviceEndpoint"
address="http://localhost:8888/ws/policyServices";
            wsdlURL="c:\\work\\\\policy.wsdl"
            serviceClass="com.camel.PServices"/>

</beans>

i got the following error:

        - cvc-complex-type.2.4.a: Invalid content was found starting with 
element
'dataFormats'. One of 
         '{"http://camel.apache.org/schema/spring":route}' is expected.
        - Start tag of element <dataFormats>



--
View this message in context: 
http://camel.465427.n5.nabble.com/dataFormats-error-tp5782885.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to