gwsp2 is the name of my web reference:


gwsp2.Folder f = getMailbox();
itemsReq = new gwsp2.getItemsRequest();
itemReq = new gwsp2.getItemRequest();
itemsReq.container = f.fldId;
itemsResp = ws.getItemsRequest(itemsReq);


foreach (gwsp2.Item i in itemsResp.items)
{
gwsp2.Mail m = (gwsp2.Mail)i;
if (!m.status.read)
{
string messageBody = "";
if (null != newMailItem.message && 0 != newMailItem.message.Length)
{
gwsp2.MessagePart part = (gwsp2.MessagePart)newMailItem.message.GetValue(0) ;
System.Text.UTF8Encoding utf8 = new System.Text.UTF8Encoding();
messageBody = utf8.GetString(part.Value);
}
}
}


private gwsp2.Folder getMailbox()
{
folderListReq = new gwsp2.getFolderListRequest();

folderListReq.recurse = true;
folderListReq.parent = "folders";
folderListResp = ws.getFolderListRequest(folderListReq);

if (0 == folderListResp.status.code)
{
if (null != folderListResp.folders)
{
foreach (gwsp2.Folder f in folderListResp.folders)
{
if (f.name == "Mailbox")
{
return f;
}
}
}
}
return null;
}



When I iterate through mailbox items I get a reference to the new mail item but newMailItem.message is always null. I can log in through the Novell WebAccess and see the message does in fact have a message body.

What am I doing wrong?