James ruled out of England qualifiers
James, who has played all five of England's qualifers so far, missed Portsmouth's home match against Sunderland on Monday and his club said he would have an operation this week.
"The operation will take place in London this week so that he will be fit for the start of next season," Portsmouth's website said.
Until Monday, the 38-year-old had played every minute of Portsmouth's Premier League season and helped them avoid relegation.
With Manchester United's reserve keeper Ben Foster also unavailable after surgery on his thumb, England coach Fabio Capello could turn to West Ham United's Robert Green or former England first choice Paul Robinson.
England, who lead Group Six with a maximum 15 points, play Kazakhstan away on June 6 and are at home to Andorra on June 10.