A trade that works is
Boston sends Rasheed Wallace and 2011 1st round pick and 2010 2nd round pick
Miami sends Michael Beasley and Daquaen Cook and pick #18
Rasheed then retires and this opens up almost $7 million in cap space as the Heat knock Cook's and Beasley's salaries down to the $495,000 minimum roster spot hold and the #18 pick $1.29 million hold down to $495,000 minimum hold as well.
When the Heat resign Wade they would then have
Wade - $17.1 million
Chalmers - $0.9 million
And 10 minimum roster holds of $495,000 - $4.95 million
That's $23 million in salary and holds with a salary cap at say $56 million. It would allow the Heat to sign LeBron and either Bosh or Boozer or sign Amare and Boozer. Of course the team would then have to sign like 10 vet minimum players but so what, in two off seasons you have a dynasty after adding 3 first round draft picks and 2 MLE players to a core of Wade, Lebron, Chalmers and Bosh.