System.out.println("File Name: " + fileName);
String fileContent = readAsciiFile(fileName);
System.out.println("File Content:\n " + fileContent + "\n");
ServiceInvoker invoker;
Message requestMessage;
Message replyMessage = null;
invoker = new ServiceInvoker("MyTransformationServicesESB", "MyXML2POJO2TransformationService");
requestMessage = MessageFactory.getInstance().getMessage(MessageType.JBOSS_XML);
requestMessage.getBody().add(fileContent);
// now delivery it and wait for a response
replyMessage = invoker.deliverSync(requestMessage, 20000);
System.out.println("Reply Message: " + replyMessage.getBody().get());
}