The White House has contacted China's Foreign Ministry over the detention of an American businesswoman accused of spying, a spokesman said on Tuesday, in a case that blew up just as President Xi Jinping began a visit to the United States.