Assuming standardization on Web services, then contract definition consists of three tasks:
Desgin Message Schema
Create WSDL
Define Policies