I had the same need to create an attachment and found the same broken link as you did. Since your post is a couple of months old I don't know if you ever figured it out. After spending several hours on it this afternoon I did figure out for our 4.2 Java system. I think it should still work on 5.1 .Net.
Attached is an OML file that you can use as a starting point.