In the Papa John's Trophy final, Rotherham came from behind twice to win 4-2.
Jordi Osei-Tutu's goal in the sixth minute of added time at the end of the second half at Wembley was enough to give the League One leaders a draw against League Two Sutton.
Wilson gave the U's a first-half lead before Wiles hit a stunning strike for the Millers.
Craig Eastmond gave the south London side the lead early in the second half, only for Osei-Tutu to make it 2-2 at the end.
The trophy would be heading back up north to South Yorkshire after Chiedozie Ogbene and Michael Ihiekwe scored in extra time.
After being promoted to the English Football League for the first time last summer, the underdogs made a bright start and pressed the Millers into a couple of mistakes.
Wilson opened the scoring when Michael Smith failed to deal with a floated ball into the box.
Will Randall took it down before laying off to Wilson.
Wiles' long-range effort was a highlight of the goal that sparked Rotherham into life.
TheMidfielder sent a curling, dipping strike from 20 yards out to level the score at half-time.
Eastmond made it 2-2 at the start of the second half after his initial attempt was blocked.
The League Two side looked like they had done enough to win the trophy when the fourth official signaled for seven minutes of added time, but substitute Osei-Tutu came up with a goal one minute from the end.
The goal sucked the life out of the players and the class of the club shone through in extra time as they scored to complete the comeback for the Yorkshire club.
The Millers came into the match as strong favorites and there were some nerves in their backline as they were put under pressure by Sutton.
The fans in the stands groaned at each missed pass as they expected more from their team against the lower-league outfit.
The final went into extra time after Rotherham came up clutch in the big moments.
There was only going to be one winner once that began, as Ihiekwe headed home to take advantage of the tired defenders and win the cup.
The captain of the club, who has been with the club since 2015, put the club in front.
They looked to have done enough as the match wore on, but the draw was deflating for them and inspiring for Rotherham.
Extra time looked to be a step too far as they struggled to keep up with the fitness of the higher-league side but boss Matt Gray and the Sutton supporters will be proud of the performance of their team today and this season.
The club faced a monumental challenge in their first season in League Two, yet they are in 11th place with seven games to play and a chance of securing a play-off place.
Formation 3-1-4-2.
11Ogbene18Rathbone8Wiles14MillerFormation 4-4-2.
22Kizzi5Goodliffe6John24Milsom7Ajiboye15Eastmond10Beautyman11Randall-Hurren