Source content = getSourceFromClassPath(fileOnClassPath);
ServiceNameEndpointResolver resolver = new ServiceNameEndpointResolver(serviceName);
ServiceMixClient client = new DefaultServiceMixClient(container);
Object answer = client.request(resolver, null, null, content);
return answer;
}
protected Source getSourceFromClassPath(String fileOnClassPath) {
InputStream stream = getClass().getResourceAsStream(fileOnClassPath);