I'm trying to do a soap request using camel-soap. It is packaged as a bundle and gets deployed on karaf. I use maven and got this dependeny in my pom.xml:
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-soap</artifactId>
<version>2.3.0</version>
</dependency>
I also installed camel-soap on karaf.
Code for the Request looks like this
from("timer:testTimer?period=1000")
.process(new Processor() {
public void process(Exchange exchange) throws Exception {
Map<String, String> params = new HashMap<String, String>();
params.put("key", "value");
exchange.getOut().setBody(params);
}
})
.to("soap:testWebservice?wsdlUrl=" + WSDL + "&serviceAddress="
+ ADDRESS + "&operationName=authenticate")
.process(new Processor() {
public void process(Exchange exchange) throws Exception {
Map body = (Map) exchange.getIn().getBody();
LOGGER.log(Level.INFO, body.toString());
}
});
In my Activator class I'm creating DefaultCamelContext on my own but there is no SoapComponent or something like this I could add to my camel context to make this work.
Anyone can help me out?