My dd2 used to cry to the point of vomiting. She didn't intentionally vomit, she got so upset her body got her to that point.
It was never an act of defiance. Though I occasionally had others say it was... Or say she was making it up for attention. She stopped at around 3 or 4. If it was intentional I'm sure she'd still be doing it.

I have had dd3 urinate in a way that seems to be out of spite though. Being fully toilet trained & weeing on the floor when she's just been told not to do something. Like drawing on the walls, or that she can't go to so & so's house. Dd3 is an interesting child. She likes to push the boundaries & see just how far she can go.
She likes to stir & loves a good reaction from the other kids by disrupting anything that's entertaining them.
She doesn't wee on the floor anymore, but she still knows how to drive me mad! Lol
She's a challenge, but she's improving.

I would be more worried that a child is urinating out of fear. It is a reaction for people of all ages, especially children, to lose bladder control when they think they're in danger. (I say think, because small children may not be, but the situation makes them think they are... Eg, my best friends male teacher touched her shoulder at 5. She wasn't in danger, but home experiences told her she was & she wet herself)