I'm trying to get the actual message using getItemRequest and passing the msgID from the mail item but I am coming up with the following error:

stdClass Object ( [code] => 59905 [description] => Bad parameter passed to a NCSP function ) ID: 4C3C10D8.dom1.po1.200.200009B.1.3AA.1

Here is my code:
$msgid = $item->msgId;
$msr = new getItemRequest();
$msr->id = $msgid;
$msgr = $gwservice->getItemRequest($msr);

I think the error is coming from the $msgr but I can't tell if the previous request worked. BTW, I'm very new at this. Thanks