Wilson, who will start the Angels' second of the season, gave up one unearned run and four hits against an Oakland lineup that featured just one regular player.
"C.J. was great; he pounded the zone," Angels manager Mike Scioscia said. "It was good for him to get seven innings in."
Gray, meanwhile, got in his final work before he will take the ball on Opening Day in five days. The right-hander allowed one run on one hit and one walk in five innings. He struck out one.
"I'm ready," said Gray, who will make the start as part of his first Opening Day. "The most important thing is continue with the routine I've done all through Spring Training. ... It's going to be a big, but fun, week."
After Gray left, former A's prospect Green hit a two-run homer to center field off Jeff Urlaub and Boesch followed with a solo blast to right in the seventh inning.
The Angels added a run in the eighth and ninth, and A's Minor Leaguer Dusty Coleman homered off left-hander Joe Smith in the eighth.
It was the final Cactus League game of the season for both teams, and the last game at Phoenix Municipal Stadium, Oakland's Spring Training home since 1982. The A's will move to Hohokam Park in Mesa next year.
UP NEXT: The A's left Arizona after Wednesday's game and will begin the three-game Bay Bridge Series against the Giants on Thursday night. The two teams will play twice at AT&T Park in San Francisco and once at O.co Coliseum in Oakland. Scott Kazmir will start Thursday for the A's while the Giants will counter with Tim Hudson. The game will be broadcast on MLB.TV and Gameday Audio at 7:15 p.m. PT.