some thoughts based on chemistry
Bill Tindall, E.Tn.
If you have performed this removal technique on the wax Alan used, then for anyone else, read no further. I'll delete this addition.
However, if the recommendations are a guess, the recommendations are not what I would expect would be best for the task. I have no experience removing "paste wax". What follows is a guess based on typical wax composition.
1. Is wax pigmented or not? If pigmented, I suspect all effort will fail to remove color while preserving color of pants.
2. Typical wax from natural sources-bees, Carnubas and the like- is an ester of some "greasy" hydrocarbons. These esters break apart and become water soluble in the presence of something basic like typical detergent, especially dishwasher detergent. However, dishwasher detergent can contain powerful bleaches, so I would be wary of using it on colored clothing if it has bleach. Heat hastens the reaction to break apart the ester into water soluble components. Borax of washing soda will be safe to use as a source of something basic.
3. Wax is "greasy" and not much different chemically from vegie or animal grease. I would expect that an emulsifying detergent that removed grease would remove wax.
4. Wax melts well below the boiling point of water. In the liquid form it will emulsify with detergent and the esters will split faster too.
5. Enzymes and bleach will have no effect on wax.
Based on these facts I speculate that a wash in hot detergent, with or without washing soda or borax, would remove the wax. If the whole pants might shrink in hot water, try very hot water just in the spot area- hot water, concentrated detergent and some rub a dub.
Candle wax is a different chemical . It is not an ester and it will not break down into something water soluble. It may wash out over time in hot water.