South Korea and China have canceled meetings with top Japanese officials to protest Japanese Prime Minister Junichiro Koizumi 's visit to a controversial war shrine .