BAGHDAD/DUBAI (Reuters) - Iran wants to resolve differences with its Gulf foes Saudi Arabia and the United Arab Emirates “as quickly as possible”, Tehran’s ambassador to Iraq said in remarks published on Tuesday.

Ambassador Iraj Masjedi said top commander Qassem Soleimani, killed at Baghdad airport by a U.S. drone strike last month, was carrying a message setting out Iran’s position on possible rapprochement with Saudi Arabia, the Iraqi state news agency reported.

“Tehran welcomes Iraq’s role in trying to solve differences between Iran and Saudi,” Masjedi was quoted as saying, referring to recent Iraq efforts to mediate between the regional rivals, expressing Iran’s “wish to resolve differences and challenges with Saudi and the UAE as quickly as possible.”

Masjedi made his remarks in an interview with the agency, which published excerpts in Arabic.

Shi’ite Muslim Iran has long been at odds with U.S. Gulf Sunni Arab allies. Washington blamed a series of attacks against oil interests in the Gulf last year on Iran, and the killing of Soleimani brought the region to the brink of war.

Soleimani’s message that he was meant to deliver when he arrived in Baghdad on Jan.3, the day he was killed, set out Tehran’s position on “fighting terrorism and achieving peace and security in the region,” Masjedi said.

A senior Saudi official said last month that he was not aware of any message carried by Soleimani for mediation efforts between Riyadh and Tehran.

The killing of Soleimani struck a blow to Iran’s regional strategy. Soleimani was the mastermind behind Iran’s control, through proxy militia forces and political alliances, over a corridor of territory stretching from Tehran through Iraq to the Mediterranean via Syria and Lebanon.

The United States says it is determined to counter Iran’s influence in the region and has imposed economic sanctions on Iran’s oil sector and allies abroad and targeted its paramilitary forces.

After Soleimani’s killing alongside top Iraqi paramilitary commander Abu Mahdi al-Muhandis, Iran launched at least 15 missiles at two bases hosting U.S. forces in Iraq, causing traumatic brain injury to 50 U.S. service members but no deaths.

Masjedi said the attack on the sprawling Ain al-Asad base, where the injuries were caused, was a response to Washington using “bases in the region ... and choosing Iraqi territory” to kill Soleimani - a suggestion that the drone strike was launched from Ain al-Asad.

He said Iran would respond harshly to any future attacks by the United States.

Masjedi also welcomed the naming last week of Iraq’s Prime Minister Mohammed Tawfiq Allawi, who is accepted by Iran-backed Iraqi political groups but rejected by protesters who have staged months of anti-establishment demonstrations.