The comments by a foreign ministry spokeswoman were China's first response to the gathering on the Vietnamese-held island of Southwest Cay on Sunday.

Philippine naval officials described the meeting of soldiers from the two sides as a chance to show there can be harmony despite a web of overlapping claims to the potentially energy-rich waters.

"Don't you think this small move together by Vietnam and the Philippines is at most a clumsy farce?" China's foreign ministry spokeswoman Hua Chunying said.

"China has irrefutable sovereignty over the Spratly Islands and the seas nearby."

"We demand that Vietnam and the Philippines stop any behaviour that picks quarrels and causes trouble ... and not do anything to complicate or magnify the dispute."

The gathering underscores the growing cooperation between Vietnam and the Philippines, which have both felt China's wrath over the South China Sea.

The Philippines, Malaysia and Brunei all claim some of the islands, while China, Taiwan and Vietnam claim the whole chain.

Diplomats and experts have described the partnership between Hanoi and Manila as part of a web of evolving relationships across Asia that are being driven by a fear of China, as well as doubts among some over the US's commitment to the region.

China accuses Vietnam of ramming ships more than 1400 times

China has also accused Vietnam of ramming its ships more than 1,400 times and said while it wanted good relations with its neighbour, it would not abandon principles to achieve that.

A Vietnamese fishing boat sank on May 26 during a confrontation not far from where China has towed an oil rig, accompanied by a cordon of Chinese vessels, 240 kilometres off Vietnam.

Shortly after China brought its oil rig into the area, Vietnam sent a large number of vessels into the area, a spokesperson for China's foreign ministry said.

"There were as many as 63 Vietnamese vessels in the area at the peak, attempting to break through China's cordon and ramming the Chinese government ships for a total of 1,416 times," they said.

"China exercised great restraint and took necessary preventive measures."

Last week, Vietnamese television footage showed a large Chinese vessel steaming after two Vietnamese fishing boats, then colliding with one which capsized.

The foreign ministry spokesperson says China has communicated with Vietnam more than 30 times asking it to "stop its illegal disruption".

"China wants good relations with Vietnam, but there are principles that China cannot abandon," they said.

The Haiyang Shiyou 981 rig is drilling between the Paracel Islands occupied by China and Vietnam.

Vietnam says the rig is in its 200 nautical mile exclusive economic zone and on its continental shelf but China says it is operating within its waters.

The rig's deployment set off anti-Chinese riots in Vietnam last month in which at least four people were killed.

The dispute is the most serious deterioration of relations between the communist states and traditional rivals since a brief war in 1979 following Vietnam's invasion of Cambodia.

Reuters - June 9, 2014