Thanks for the post.
I am migrating infopath form from SP2007 to SP2013 one of the form contains the checkout(on page load) - Checkin(on submit click) functionality explained exactly above. I converted the Checkout data connection to convert to connection file. In the udcx file i used authentication section. Checkout and checkin is ...