A middleman basically makes sure both parties in the trade get the payment/items.
Example.
PLayer A is selling runescape gold, Player B is buying.
Player A gives the runescape gold to the middleman.
Middleman tells player B that he can now send the payment.
Player B sents and payment to Player A, Player A confirms this.
Middleman gives Player B his gold.
= Everyone happys =]
Have a look through some of the middlemanning threads and they state how they do some of the common trades.