Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the early version of the new website
https://camel.apache.org/staging/
We would very much like to receive any feedback on the new site, please join the discussion on the Camel user mailing list.
Spring Web Services ExampleAvailable as of Camel 2.6 This example shows how to expose a SOAP-based web service using Camel and Spring Web Services. Running the exampleThe example is included in the distribution at mvn clean install jetty:run This will expose a web service on Code walk throughThe Camel route that exposes the above web service is defined as: JaxbDataFormat jaxb = new JaxbDataFormat(false); jaxb.setContextPath("org.apache.camel.example.server.model"); from("spring-ws:rootqname:{http://camel.apache.org/example/increment}incrementRequest?endpointMapping=#endpointMapping") .unmarshal(jaxb) .process(new IncrementProcessor()) .marshal(jaxb); Taking a closer look at the URI reveals that this route consumes messages with a certain Further notice that the URI contains a reference to an <bean id="endpointMapping" class="org.apache.camel.component.spring.ws.bean.CamelEndpointMapping"> <property name="interceptors"> <list> <ref local="validatingInterceptor" /> <ref local="loggingInterceptor" /> </list> </property> </bean> This bean is a Spring-WS endpoint mapping that maps incoming messages to appropriate Camel routes. You'll only need to define one The above <servlet> <servlet-name>spring-ws</servlet-name> <servlet-class>org.springframework.ws.transport.http.MessageDispatcherServlet</servlet-class> </servlet> Since the servlet is named |