Hi Team,

I tried to use Spring DSL to consume to Restful Webservice and store the
output in the POJO but the processor was not triggered. Can you please
assist me on this.

from("restlet:http://localhost:8090/validateCustomer?custName=XXX";).process(new
ProcessWebservice())
.to("file:destination");

public class ProcessWebservice implements Processor {
        
    public void process(Exchange exchange) throws Exception {
        String body = exchange.getIn().getBody(String.class);
        System.out.println("body>>"+body);

    }

I appreciate your help on this.


Thanks,
Vigneshwaran
}



--
View this message in context: 
http://camel.465427.n5.nabble.com/Spring-DSL-consume-Restful-WebService-to-POJO-tp5770531.html
Sent from the Camel Development mailing list archive at Nabble.com.

Reply via email to