was appointed as a local representative in the court of cadiz