Mufti Abdul Ghani Patialvi, who was the headmaster at one of the famous Deobandi Madaris located in Delhi, Madrasa Aminia (where Mufti Kifayatullah Dehlawi famously taught), wrote a work against Barelwis called al-Junna li Ahlissunnah, available here:
The title was suggested by Mawlana Ashraf Ali Thanawi, who endorsed the book. It was also endorsed by Mufti Kifayatullah Dehlawi.
The work consists of three separate books/chapters written in the 1920s and 1930s. The first is a defence of Shah Isma’il Shahid; the second is a response to Ahmad Rida Khan’s allegations against the four Akabir; and the third is on the topic of innovation (bid’ah). There is also a lengthy introduction which refutes the claim that Shah Isma’il Shahid was influenced by Muhammad ibn Abd al-Wahhab, a “foreign person, whose integrity and knowledge is unknown.” (al-Junnah, p. 14) Indeed, all of Shah Isma’il’s positions that supposedly reflect influence by Wahhabis are found explicitly in the writings of his predecessors (ibid.), like Shah Waliullah Dehlawi, Shah Abdul Aziz Dehlawi and Qadi Thanaullah Panipati. Extensive quotes from these scholars and others are presented to show that they were Shah Isma’il’s sources, not Wahhabis. A detailed description is also provided on the nature of the beliefs of the common and ignorant Muslims that Shah Isma’il was addressing. Shah Isma’il’s liberal usage of the term “shirk” is also discussed – that he sometimes meant true shirk and sometimes an action associated with mushrikun though not true shirk.