SODA is a novel approach for specifying and detecting SOA antipatterns. It involves specifying antipatterns using a domain-specific language, generating detection algorithms from the specifications, and applying the algorithms to detect antipatterns in service-based systems. An evaluation on two versions of a home automation system found that SODA could accurately detect 10 different antipatterns, with a recall of 100% and precision over 75%. The approach demonstrates potential for automated analysis and improvement of service-oriented architectures.