Well, I'd think the issue on CheckInFile would be if your parameters were incorrect. So, be sure to verify that the pageUrl query parameter is being set to the full path of the file you wish to check in and that you've set the CheckinType.
Here's the MSDN page on the method:
msdn.microsoft.com/.../lists.lists.checkinfile(v=office.12).aspx