So LEGALLY, an embassy is not considered foreign soil. However, attempting to invade one is tantamount to a declaration of war.
Consulates, on the other hand, are not necessarily the same thing and may not enjoy the same level of protection. Your embassy performs the high-level diplomatic shit, but consulates are more for day-to-day stuff (visas, taxes, etc).
So LEGALLY, an embassy is not considered foreign soil. However, attempting to invade one is tantamount to a declaration of war.
Consulates, on the other hand, are not necessarily the same thing and may not enjoy the same level of protection. Your embassy performs the high-level diplomatic shit, but consulates are more for day-to-day stuff (visas, taxes, etc).