A Rankin man convicted of indecent solicitation of a child has been resentenced to four years in state prison after violating the terms of his probation.