VRSIC, Slovenia (AP) -- Russian President Vladimir Putin struck a conciliatory tone Saturday on a visit to Slovenia, shaking hands and honoring dead soldiers as he tested Western resolve in maintaining crippling sanctions against the Kremlin for its role in Ukraine.
Slovenia, a small Alpine nation where U.S. Republican presidential nominee Donald Trump's wife Melania was born and grew up, is a member of both the 28-nation European Union and NATO. It has kept friendly relations with Russia even as it joined EU sanctions against Moscow for its 2014 annexation of Ukraine's Crimean Peninsula and its support for insurgents in eastern Ukraine.
On only his third visit to an EU nation this year, Putin attended the centenary commemoration of a chapel in the Julian Alps that was erected in honor of over 100 Russian and other World War I prisoners of war who died in an avalanche while building a winding mountain road for their Austrian army captors in 1915.
At the small, Orthodox-style wooden church named St. Vladimir chapel, Putin was met by Slovenian President Borut Pahor. Thousands of people packed in front of the chapel in the blazing heat as a chorus sang old Russian church songs. They greeted Putin with a long applause and loud cheers. He waved back and shook their hands.
"This chapel has become a symbol of the friendship of the Russian and Slovenian peoples, a symbol of our mutual striving for peace, cooperation and prosperity," Putin said.
He also said Russia was ready to help strengthen security in the world.
"So that we not only remember the horrors of war, but together work on strengthening mutual understanding, trust and security in Europe and the world," he said.
He thanked Slovenians for "caring about our common history, for remembering the Russian citizens whose fate was connected with these tragic events on Slovenian soil."
Security was tight for the visit and included closing the country's main highway to Austria, which caused huge traffic backups.
Slovenian officials portrayed Putin's visit as strictly informal and ceremonial, but said he would talk with officials on economic and bilateral issues.
Putin said the talks focused on "mutual economic projects important for both countries." He said Russian trade with the EU has dropped almost in half because of sanctions "and not that much" with the United States.
"Both things are not good," he told the Slovenian leader.
Russia is Slovenia's top non-EU trading partner but trade between the two has dropped nearly 30 percent since the Western sanctions and Russian counter-sanctions.
Some Slovenian opposition parties believe that Putin's visit was an attempt to break Western unity over maintaining the sanctions against Moscow.
"We knew from the start that the controversial guest would use the visit primarily to demonstrate his influence in an EU and NATO member state," said Jozef Horvat, deputy president of the New Slovenia party.
Slovenia, a country of 2 million people, split from the former Yugoslavia in 1991. It joined NATO and the EU in 2004.
Putin's visit has angered Ukrainians living in Slovenia, who protested Saturday in front of the Russian embassy in the capital, Ljubljana. Dozens held banners reading "Putin is a terrorist" and chanted "Long live Ukraine!"
AP Writer Lynn Berry contributed from Moscow.