A judgment in any action under this chapter in respect to costs may be enforced by execution as a judgment which requires the payment of money. In all other respects, obedience to the judgment may be enforced by attachment of the body of the defendant, or, if the defendant is a corporation, the body of any or all of the officers or members of such corporation refusing or neglecting obedience thereto.