Any nonresident person or corporation owning or claiming any interest or lien in or upon lands in the state may file with the secretary of state a writing, executed and acknowledged in the manner of a conveyance, appointing a resident agent, whose place of residence shall be stated, to accept service of process or summons in any action or proceeding in the courts of the state concerning such interest or lien, except actions or proceedings for the collection of taxes, and consenting that service of such process or summons upon such agent shall be binding upon the person executing the same. Such writing shall be recorded by the secretary. No service by publication of summons shall be made upon any such nonresident who has complied with the provisions hereof, but in all such cases service of such process or summons, or of any writ or notice in the action or proceedings, shall be made upon such agent in the manner provided by law for such service upon residents of the state, and have the same effect as personal service within the state upon such owner or claimant; but, if such party appears by attorneys therein, the service of papers shall thereafter be upon such attorney. The authority of such agent may be revoked by writing similarly executed and acknowledged and recorded, but no revocation shall affect any action or proceeding then pending. For filing and recording such papers the secretary shall be entitled to 15 cents for each folio.