California Penal Code §647 defines the different situations in which a person may be charged as engaging in disorderly conduct. Solicitation falls under this statute, and those that are accused of solicitation will be charged and tried in court.
Specifically, CPC §647 (b) makes it unlawful for any person to solicit or even agree to engage in the act of prostitution. The statute also makes it unlawful for any person to engage in any act of prostitution.
The statute defines a person as engaging in an act of prostitution when they manifest a specific intent to engage in the act. They must demonstrate an acceptance or an offer of solicitation. However, the agreement to engage in prostitution is not enough. There must also be an overt act that demonstrates a furthered intention to commit the act.