A good steam cleaner will remove cosmoline well. All you have to do is get it hot enough to melt and it runs off.
On the wood, it has the effect of removing dents as well, so win/win situation there. The wood is the biggest issue with cosmoline as it soaks in. Steam might not get enough out...