President Barack Obama spoke Friday with Chinese President Xi Jinping to persuade Beijing to do more to pressure North Korea in response to its nuclear test last month and a planned rocket launch in coming days.

Mr. Obama called Mr. Xi to coordinate a response to Pyongyang’s Jan. 6 nuclear test, and the White House said both leaders agreed the planned ballistic missile test would violate United Nations Security Council resolutions and could prompt the adoption of a new one.