Beijing says to work with US on leaders' summit in San Francisco