Give yourself a scale to start with. Then basically play a melody based on that scale. That's how you get soloing.
If you want to go deeper into it, you get the chord progression for solo part and you improvise a melody based on that chord progression.