In following code i am retrieving the item response objects and casting the mail items ,and trying to get the message body.
I am able to get mail objects but not content inside it.

if(mailBoxfolderId != null)
GetItemsResponse itemsResponse = gwPort.getItemsRequest( mailBoxfolderId, new String[] {"default", "message", "peek", "attachment" },
null,null,-1,sessionID,false );

Items mailList=itemsResponse.getItems();

for (Item item : mailList.getItem()) {
Mail mail = (Mail)item;