--
You received this message because you are subscribed to the Google Groups "ipf-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ipf-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ipf-user/ff431eeb-b6b5-4ab2-b2f8-eee8dc8805b7n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ipf-user/CAHh9K-k9EUFFMukaCKs-%3DDOu2z0LvFKXUYXHwQB6aCjDyDtEOQ%40mail.gmail.com.
// send the xds-iti41 request// initialization of the application -- should be executed only once
ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext("context-client.xml");
CamelContext camelContext = appContext.getBean(CamelContext.class);
ProducerTemplate producerTemplate = appContext.getBean(ProducerTemplate.class);
// for each call
Exchange exchange = new DefaultExchange(camelContext);
exchange.setPattern(ExchangePattern.InOut);
exchange.getIn().setBody(provide);
String iti41Endpoint = "xds-iti41://localhost:9091/xds-iti41";
exchange = producerTemplate.send(iti41Endpoint, exchange);
Exception exception = Exchanges.extractException(exchange);
if (exception != null) {
throw exception;
}
Response response1 = exchange.getMessage().getMandatoryBody(Response.class);
log.warn(response1.toString());
My xds-iti41 client codes are as follows, But how can I add the the file-based payload logging ? 😀// send the xds-iti41 request// initialization of the application -- should be executed only once
ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext("context-client.xml");
CamelContext camelContext = appContext.getBean(CamelContext.class);
ProducerTemplate producerTemplate = appContext.getBean(ProducerTemplate.class);
// for each call
Exchange exchange = new DefaultExchange(camelContext);
exchange.setPattern(ExchangePattern.InOut);
exchange.getIn().setBody(provide);
String iti41Endpoint = "xds-iti41://localhost:9091/xds-iti41"
+ "?inInterceptors=#clientInLogger" +
"&inFaultInterceptors=#clientInLogger" +
"&outInterceptors=#clientOutLogger";
To view this discussion on the web visit https://groups.google.com/d/msgid/ipf-user/CAK21zoGmvzu1uNPm7ryGy_0CaApjJFDsFy%3Dixdi4iNJKuLLvkw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ipf-user/3971d3e7-4c7e-404d-bf67-f247b5cf6ad9n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "ipf-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ipf-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ipf-user/CAK21zoHghiAKM3%3D2isRN59SmCNWuyrwMXM1fYrX23UY2B_a%3DUw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ipf-user/89ca3f54-4012-4c3b-bd4c-efe567e45ed9n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ipf-user/121b8ea0-7e59-4d7d-9855-bcdedd25e156n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ipf-user/8855fb6c-9c4f-4583-9020-0eeba59c67a6n%40googlegroups.com.