Attach edges of soft body to rigid parts

I have opened a thread on topic that it should be similar and might have a similar solution.