 As a specialist in fortifications, when the Ottoman Empire began preparing to enter World War I, Weber was assigned to strengthen the coastal defences of the Dardanelles.In late March/April 1915 he was appointed commander of the Ottoman XV Corps on the Asian shore of the Straits.During the Gallipoli Campaign, he distinguished himself in the early stages of the fighting on the Asian side of the Dardanelles.