All matters of service, jurisdiction, procedure, residence, pleading, and practice for obtaining an annulment of marriage shall be the same as those provided by law for obtaining a divorce, with the exception that a decree of annulment may be ordered at any time, in open court or in chambers, when personal service is had at least 30 days beforehand and no contest or answer is filed.