Well, I was checking the exchange in the debug mode and the exchange.out.body was null. I believe it is lazy evaluated, couse as soon as we use exchange.getOut().getBody(), it returns the correct response.
It trick me out!!
RetrieveListResponse response = (RetrieveListResponse) ((MessageContentsList)exchange0.getOut().getBody()).get(0);
It worked fine!!
Ah, cool. Because I was just putting together an example for you .
Can you pls share your sample with us?
Thanks for the attention.
I am out of the office this week. I will share the sample as soon as I am back.
Italo Giovani Stefani
I'm also interested in a sample. I want to accomplish the same thing.