Abstract. Web services composition is the interleaving of action sequences executed by elementary components in accordance with a client specification. We consider Web services as automata able to execute actions and send and receive messages. For this model, we define the composition problem and study its complexity.