wire on surface

Hallo everyone,

I apologize, if this question is too simple.

How can I create a wire which adapts itself exactly to the surface on which its start- and endpoint already exist?

 

I am thankful for any kind of help.