now it styled itself the soft-shell capital of the world ; yet in 1812 , the one war in the country 's history where foreign troops were deployed on u.s. soil , it was the base of british operations .