They aren't interchangeable. 1 means you wonder what James would have said if he had had an opinion about it. 2 means you wonder what James said about it.
In sentence 1, James could have been dead, or a thousand miles away, or otherwise unaware of the event. In sentence 2, James knew about the event and you wonder what he thought about it.
Student or Learner