...
This will expose a web service on http://localhost:8080/increment
. With help of a tool such as Soap-UI it's easy to sent messages to this endpoint. There's a ready to use SOAP-UI project available at examples/camel-example-spring-ws/client
.
...
Taking a closer look at the URI reveals that this route consumes messages with a certain rootqname
. In this case it listens for messages with root element incrementRequest
defined in the http://camel.apache.org/example/increment
namespace. These XML messages are unmarshalled to Java objects using Camel's Data Format support. After processing the resulting object is marshalled back to XML and returned to the client.
...