Following the completion of the 2001 Super 12 season, James was included in the Springboks squad and made his debut for South Africa at fly-half in a 32–23 loss to
France at
Ellis Park. In the following Test, also against France, he contributed five penalty goals in the 20–15 victory in
Durban, but was later cited and suspended, missing South Africa's next match, against . He returned for the
2001 Tri Nations Series and started at fly-half in every game, though South Africa only managed to win the one match – 20–15 against
Australia in
Pretoria. James was a part of Springboks in November 2002, and was a reserve against a Test against France at
Stade Vélodrome in
Marseille, and was subsequently moved to starting fly-half for a Test against
Scotland. He was switched to inside centre for the following match against
England. South Africa lost all of those end-of-season Tests including the 53–3 drubbing by England. James was included in the Springboks
2006 Tri Nations Series squad, playing in the 35–17 loss to the
All Blacks in
Wellington, as well as in the following match, against Australia in Sydney, which the Springboks lost 20–18, thanks to a late Wallaby try. James made an impact in the first half, though one of his cross-field kicks was intercepted and led to a
Mark Gerrard try. He was also selected for the end-of-year tour to Ireland and England. After being omitted from the squad for the game against Ireland, James started in the first game against England. In the first half, he scored a try with the help of
Jean de Villiers, and at the start of the second half he set up a try for Springbok wing
Akona Ndungane, the first of his career. Although he scored 14 points (a try, two penalties, and a conversion), South Africa narrowly lost the game, 23–21, and James had to be substituted after suffering another knee injury, which meant he missed South Africa's 14–25 win in the second Test against England. James was named in the Springboks squad for the
2007 Rugby World Cup. He played in three pool matches, including those against and England, and in all three games in the knock-out stages. In the final, against England, his composure and ability to nullify the impact of his opposite number,
Jonny Wilkinson, helped South Africa to a 15–6 win. ==Bath career==