You are stating that you were caught soliciting a prostitute, correct? (Not that you are a prostitute caught soliciting customers.)
You might want to wait out five years before seeking naturalization; or consult an immigration lawyer for a detailed evaluation. If my previously stated assumption is correct, I would not expect the charge to result in deportation or loss of your Green Card.

