Longoria put the Rays up 2-0 with his 13th homer of the season, connecting in the first inning off Wilson (8-7). Longoria became the first Tampa Bay player to reach 600 career RBIs.
Brandon Guyer hit a two-run single that ended Wilson's night during a four-run second that put Tampa Bay ahead 6-0.
''Whenever we played Wilson, he's normally got the better of us,'' Rays manager Joe Maddon said. ''It was kind of unusual to see that moment. I know he had struggled a bit before he went on the DL, but nevertheless it's still awkward because this guy is so good.''
Wilson made his first start since July 9 because of a sprained right ankle. He threw a complete game five-hitter to beat the Rays 6-0 on May 17. Over his last five starts, Wilson is 1-1 with a 12.50 ERA.
''The overriding theme we've seen with C.J. is just controlling counts and missing spots and not being able to put hitters away,'' Angels manager Mike Scioscia said. ''I think we saw some of that tonight. He was struggling to find his release point. We need him to figure it out.''
''The team gave me some wiggle room,'' Archer said.
Howie Kendrick and Hank Conger had RBI doubles in a three-run fourth that cut the Angels' deficit to 6-3. Los Angeles had two on with one out in the eighth, but failed to score when Kendrick and David Freese struck out.
Angels slugger Josh Hamilton went 0 for 3 with three strikeouts and a walk one day after being hit on the left middle finger by a pitch.
Los Angeles reliever Joe Thatcher left in the fourth with a sprained left ankle, which occurred while fielding Guyer's bunt single. Scioscia expects Thatcher will be placed on the disabled list.
The Rays are 5-3 on a current nine-game homestand. It's their first winning homestand since May 20-25. James Loney added three hits and has reached base in 21 consecutive games.
Angels: Outfielder Collin Cowgill, sidelined by a broken nose, has started a rehab assignment at Triple-A Salt Lake.
Rays: Right fielder Wil Myers, on the disabled list since May 31 because of a broken right wrist, hopes to start a rehab assignment next Saturday at Triple-A Durham. Catcher Ryan Hanigan, out with a strained left oblique, started a rehab assignment with Single-A Charlotte.
Angels right-hander Jered Weaver (11-6) is looking to improve on a 4-4 record in 10 starts against Tampa Bay on Sunday. Rays starter Jake Odorizzi (7-8) has allowed three runs or less in nine straight starts.
Drew Smyly joined the Rays on Saturday, two days after being acquired as part of a three-team deal that sent ace David Price to Detroit. The former Tigers left-hander is scheduled to start Tuesday at Oakland.
MR. POTATO HEAD BP
Scioscia wanted a Maddon ''Mr. Potato Head'' to see what Saturday night's giveaway looked like. The Rays manager, a long-time coach for Scioscia, sent over a full box.
Scioscia then sent Maddon a funny video of the Angels skipper using a fungo bat to hit soft tosses of ''Mr. Potato Head,'' around the office.
''Mashed potato heads,'' Maddon said with a smile.