{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,3]],"date-time":"2026-10-03T08:59:04Z","timestamp":1791017944160,"version":"4.1.0"},"reference-count":48,"publisher":"Association for Computing Machinery (ACM)","issue":"5","license":[{"start":{"date-parts":[[2009,6,1]],"date-time":"2009-06-01T00:00:00Z","timestamp":1243814400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"DOI":"10.13039\/501100000266","name":"Engineering and Physical Sciences Research Council","doi-asserted-by":"publisher","award":["EP\/FOB5708\/1"],"award-info":[{"award-number":["EP\/FOB5708\/1"]}],"id":[{"id":"10.13039\/501100000266","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100001665","name":"Agence Nationale de la Recherche","doi-asserted-by":"publisher","award":["ANR-08-EMER-004-04"],"award-info":[{"award-number":["ANR-08-EMER-004-04"]}],"id":[{"id":"10.13039\/501100001665","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Program. Lang. Syst."],"published-print":{"date-parts":[[2009,6]]},"abstract":"<jats:p>Contracts are behavioral descriptions of Web services. We devise a theory of contracts that formalizes the compatibility of a client with a service, and the safe replacement of a service with another service. The use of contracts statically ensures the successful completion of every possible interaction between compatible clients and services.<\/jats:p>\n          <jats:p>\n            The technical device that underlies the theory is the\n            <jats:italic>filter<\/jats:italic>\n            , which is an explicit coercion preventing some possible behaviors of services and, in doing so, make services compatible with different usage scenarios. We show that filters can be seen as proofs of a sound and complete subcontracting deduction system which simultaneously refines and extends Hennessy's classical axiomatization of the must testing preorder. The relation is decidable, and the decision algorithm is obtained via a cut-elimination process that proves the coherence of subcontracting as a logical system.\n          <\/jats:p>\n          <jats:p>Despite the richness of the technical development, the resulting approach is based on simple ideas and basic intuitions. Remarkably, its application is mostly independent of the language used to program the services or the clients. We outline the practical aspects of our theory by studying two different concrete syntaxes for contracts and applying each of them to Web services languages. We also explore implementation issues of filters and discuss the perspectives of future research this work opens.<\/jats:p>","DOI":"10.1145\/1538917.1538920","type":"journal-article","created":{"date-parts":[[2009,6,30]],"date-time":"2009-06-30T13:10:17Z","timestamp":1246367417000},"page":"1-61","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":131,"title":["A theory of contracts for Web services"],"prefix":"10.1145","volume":"31","author":[{"given":"Giuseppe","family":"Castagna","sequence":"first","affiliation":[{"name":"CNRS, PPS, Universit\u00e9 Paris Diderot, France"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Nils","family":"Gesbert","sequence":"additional","affiliation":[{"name":"University of Glasgow"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Luca","family":"Padovani","sequence":"additional","affiliation":[{"name":"ISTI, Universit\u00e0 degli Studi di Urbino"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2009,7,3]]},"reference":[{"key":"e_1_2_1_1_1","unstructured":"]]Alves A. Arkin A. Askary S. Barreto C. etal 2007. Web Services Business Process Execution Language Version 2.0. OASIS Standard http:\/\/docs.oasis-open.org\/wsbpel\/2.0\/OS\/wsbpel-v2.0-OS.html.  ]]Alves A. Arkin A. Askary S. Barreto C. et al. 2007. Web Services Business Process Execution Language Version 2.0. OASIS Standard http:\/\/docs.oasis-open.org\/wsbpel\/2.0\/OS\/wsbpel-v2.0-OS.html."},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1145\/1219092.1219094"},{"key":"e_1_2_1_3_1","unstructured":"]]Banerji A. Bartolini C. Beringer D. Chopella V. etal 2002. Web services conversation language (wscl) 1.0. W3C Note http:\/\/www.w3.org\/TR\/2002\/NOTE-wscl10-20020314.  ]]Banerji A. Bartolini C. Beringer D. Chopella V. et al. 2002. Web services conversation language (wscl) 1.0. W3C Note http:\/\/www.w3.org\/TR\/2002\/NOTE-wscl10-20020314."},{"key":"e_1_2_1_4_1","unstructured":"]]Bellwood T. Capell S. Clement L. Colgrave J. etal 2005. UDDI Version 3.0.2. OASIS Standard http:\/\/uddi.org\/pubs\/uddi-v3.0.2-20041019.htm.  ]]Bellwood T. Capell S. Clement L. Colgrave J. et al. 2005. UDDI Version 3.0.2. OASIS Standard http:\/\/uddi.org\/pubs\/uddi-v3.0.2-20041019.htm."},{"key":"e_1_2_1_5_1","doi-asserted-by":"crossref","unstructured":"]]\n      Berardi D. Calvanese D. De Giacomo G. Lenzerini M. and \n      Mecella M\n  . \n  2003\n  . Automatic composition of e-services that export their behavior. In Proceedings of the 1st International Conference on Service Oriented Computing (ICSOC) Lecture Notes in Computer Science vol. \n  2910 Springer 43--58.  ]]Berardi D. Calvanese D. De Giacomo G. Lenzerini M. and Mecella M. 2003. Automatic composition of e-services that export their behavior. In Proceedings of the 1st International Conference on Service Oriented Computing (ICSOC) Lecture Notes in Computer Science vol. 2910 Springer 43--58.","DOI":"10.1007\/978-3-540-24593-3_4"},{"key":"e_1_2_1_6_1","volume-title":"Proceedings of Workshop on Global Computing Models and Technologies (GlobalComp'08)","author":"Bernardi G.","unstructured":"]] Bernardi , G. , Bugliesi , M. , Macedonio , D. , and Rossi , S . 2008. A theory of adaptable contract-based service composition . In Proceedings of Workshop on Global Computing Models and Technologies (GlobalComp'08) . IEEE Computer Society Press. ]]Bernardi, G., Bugliesi, M., Macedonio, D., and Rossi, S. 2008. A theory of adaptable contract-based service composition. In Proceedings of Workshop on Global Computing Models and Technologies (GlobalComp'08). IEEE Computer Society Press."},{"key":"e_1_2_1_7_1","volume-title":"Proceedings of the 6th International Symposium on Software Composition. Springer.","author":"Bravetti M.","unstructured":"]] Bravetti , M. and Zavattaro , G . 2007. Towards a unifying theory for choreography conformance and contract compliance . In Proceedings of the 6th International Symposium on Software Composition. Springer. ]]Bravetti, M. and Zavattaro, G. 2007. Towards a unifying theory for choreography conformance and contract compliance. In Proceedings of the 6th International Symposium on Software Composition. Springer."},{"key":"e_1_2_1_8_1","unstructured":"]]Brinksma E. Scollo G. and Steenbergen C. 1995. Lotos specifications their implementations and their tests. In Conformance Testing Methodologies and Architectures for OSI Protocols. IEEE Computer Society Press 468--479.   ]]Brinksma E. Scollo G. and Steenbergen C. 1995. Lotos specifications their implementations and their tests. In Conformance Testing Methodologies and Architectures for OSI Protocols. IEEE Computer Society Press 468--479."},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1016\/0890-5401(90)90062-M"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.entcs.2006.12.041"},{"key":"e_1_2_1_11_1","volume-title":"Proceedings of the 16th European Symposium on Programming (ESOP'07)","volume":"4421","author":"Carbone M.","unstructured":"]] Carbone , M. , Honda , K. , and Yoshida , N . 2007b. Structured communication-centred programming for Web services . In Proceedings of the 16th European Symposium on Programming (ESOP'07) . Lecture Notes in Computer Science , vol. 4421 . Springer. ]]Carbone, M., Honda, K., and Yoshida, N. 2007b. Structured communication-centred programming for Web services. In Proceedings of the 16th European Symposium on Programming (ESOP'07). Lecture Notes in Computer Science, vol. 4421. Springer."},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1016\/0890-5401(88)90007-7"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1007\/11841197_10"},{"key":"e_1_2_1_14_1","unstructured":"]]Castagna G. Dezani-Ciancaglini M. Giachino E. and Padovani L. 2008. General session types. Tech. rep. id.: hal-00334435 CNRS - PPS University Paris 7. http:\/\/hal.archives-ouvertes.fr\/hal-00334435.  ]]Castagna G. Dezani-Ciancaglini M. Giachino E. and Padovani L. 2008. General session types. Tech. rep. id.: hal-00334435 CNRS - PPS University Paris 7. http:\/\/hal.archives-ouvertes.fr\/hal-00334435."},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/1069774.1069793"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/1328438.1328471"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/1328438.1328471"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1093\/logcom\/14.3.405"},{"key":"e_1_2_1_19_1","unstructured":"]]Chinnici R. Haas H. Lewis A.-A. Moreau J.-J. Orchard D. and Weerawarana S. 2007a. Web services description language (wsdl) version 2.0 Part 2: Adjuncts. W3C Recommendation http:\/\/www.w3.org\/TR\/wsdl20-adjuncts\/.  ]]Chinnici R. Haas H. Lewis A.-A. Moreau J.-J. Orchard D. and Weerawarana S. 2007a. Web services description language (wsdl) version 2.0 Part 2: Adjuncts. W3C Recommendation http:\/\/www.w3.org\/TR\/wsdl20-adjuncts\/."},{"key":"e_1_2_1_20_1","unstructured":"]]Chinnici R. Moreau J.-J. Ryman A. and Weerawarana S. 2007b. Web services description language (wsdl) version 2.0 Part 1: Core language. W3C Recommendation http:\/\/www.w3.org\/TR\/wsdl20\/.  ]]Chinnici R. Moreau J.-J. Ryman A. and Weerawarana S. 2007b. Web services description language (wsdl) version 2.0 Part 1: Core language. W3C Recommendation http:\/\/www.w3.org\/TR\/wsdl20\/."},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(83)90059-2"},{"key":"e_1_2_1_22_1","volume-title":"Proceedings of the International Joint Conference on Artificial Intelligence. 1866--1871","author":"De Giacomo G.","unstructured":"]] De Giacomo , G. and Sardi\u00f1a , S . 2007. Automatic synthesis of new behaviors from a library of available behaviors . In Proceedings of the International Joint Conference on Artificial Intelligence. 1866--1871 . ]]De Giacomo, G. and Sardi\u00f1a, S. 2007. Automatic synthesis of new behaviors from a library of available behaviors. In Proceedings of the International Joint Conference on Artificial Intelligence. 1866--1871."},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(84)90113-0"},{"key":"e_1_2_1_24_1","volume-title":"Lecture Notes in Computer Science","volume":"249","author":"De Nicola R.","unstructured":"]] De Nicola , R. and Hennessy , M . 1987. CCS without \u03c4's. In Procedings of the Colloquium on Trees and Algebra in Programming (TAPSOFT\/CAAP'87) . Lecture Notes in Computer Science , vol. 249 . Springer, 138--152. ]]De Nicola, R. and Hennessy, M. 1987. CCS without \u03c4's. In Procedings of the Colloquium on Trees and Algebra in Programming (TAPSOFT\/CAAP'87). Lecture Notes in Computer Science, vol. 249. Springer, 138--152."},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1016\/S0304-3975(02)00774-0"},{"key":"e_1_2_1_26_1","volume-title":"Proceedings of the Joint International Conference on Formal Description Techniques and Protocol Specification Testing and Verification (FORTE\/PSTV'96)","author":"Derrick J.","unstructured":"]] Derrick , J. , Bowman , H. , Boiten , E. , and Steen , M . 1996. Comparing LOTOS and Z refinement relations . In Proceedings of the Joint International Conference on Formal Description Techniques and Protocol Specification Testing and Verification (FORTE\/PSTV'96) . Chapman & Hall, 501--516. ]]Derrick, J., Bowman, H., Boiten, E., and Steen, M. 1996. Comparing LOTOS and Z refinement relations. In Proceedings of the Joint International Conference on Formal Description Techniques and Protocol Specification Testing and Verification (FORTE\/PSTV'96). Chapman & Hall, 501--516."},{"key":"e_1_2_1_27_1","volume-title":"Isomorphisms of Types: From Lambda Calculus to Information Retrieval and Language Design","author":"Di Cosmo R.","unstructured":"]] Di Cosmo , R. 1995. Isomorphisms of Types: From Lambda Calculus to Information Retrieval and Language Design . Birkh\u00e4user . ]]Di Cosmo, R. 1995. Isomorphisms of Types: From Lambda Calculus to Information Retrieval and Language Design. Birkh\u00e4user."},{"key":"e_1_2_1_28_1","unstructured":"]]Fallside D. C. and Walmsley P. 2004. XML Schema part 0: Primer second edition. W3C Recommendation http:\/\/www.w3.org\/TR\/xmlschema-0\/.  ]]Fallside D. C. and Walmsley P. 2004. XML Schema part 0: Primer second edition. W3C Recommendation http:\/\/www.w3.org\/TR\/xmlschema-0\/."},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/237721.237805"},{"key":"e_1_2_1_30_1","volume-title":"Proceedings of the International Conference on Concurrency Theory. Lecture Notes in Computer Science","volume":"1119","author":"Fournet C.","unstructured":"]] Fournet , C. , Gonthier , G. , L\u00e9vy , J.-J. , Maranget , L. , and R\u00e9my , D . 1996. A calculus of mobile agents . In Proceedings of the International Conference on Concurrency Theory. Lecture Notes in Computer Science , vol. 1119 . Springer, 406--421. ]]Fournet, C., Gonthier, G., L\u00e9vy, J.-J., Maranget, L., and R\u00e9my, D. 1996. A calculus of mobile agents. In Proceedings of the International Conference on Concurrency Theory. Lecture Notes in Computer Science, vol. 1119. Springer, 406--421."},{"key":"e_1_2_1_31_1","volume-title":"Proceedings of the International Conference on Computer-aided Verification (CAV'04)","volume":"3114","author":"Fournet C.","unstructured":"]] Fournet , C. , Hoare , C. A. R. , Rajamani , S. K. , and Rehof , J . 2004. Stuck-free conformance . In Proceedings of the International Conference on Computer-aided Verification (CAV'04) . Lecture Notes in Computer Science , vol. 3114 . Springer. ]]Fournet, C., Hoare, C. A. R., Rajamani, S. K., and Rehof, J. 2004. Stuck-free conformance. In Proceedings of the International Conference on Computer-aided Verification (CAV'04). Lecture Notes in Computer Science, vol. 3114. Springer."},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1145\/1391289.1391293"},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00236-005-0177-z"},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/4221.4249"},{"key":"e_1_2_1_35_1","volume-title":"Algebraic Theory of Processes","author":"Hennessy M.","unstructured":"]] Hennessy , M. 1988. Algebraic Theory of Processes . Foundation of Computing. MIT Press . ]]Hennessy, M. 1988. Algebraic Theory of Processes. Foundation of Computing. MIT Press."},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.5555\/646728.703349"},{"key":"e_1_2_1_37_1","volume-title":"Proceedings of the European Symposium on Programming. Lecture Notes in Computer Science","volume":"1381","author":"Honda K.","unstructured":"]] Honda , K. , Vasconcelos , V. T. , and Kubo , M . 1998. Language primitives and type discipline for structured communication-based programming . In Proceedings of the European Symposium on Programming. Lecture Notes in Computer Science , vol. 1381 . Springer. ]]Honda, K., Vasconcelos, V. T., and Kubo, M. 1998. Language primitives and type discipline for structured communication-based programming. In Proceedings of the European Symposium on Programming. Lecture Notes in Computer Science, vol. 1381. Springer."},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/773153.773154"},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.1007\/11690634_3"},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-74407-8_15"},{"key":"e_1_2_1_41_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-68679-8_42"},{"key":"e_1_2_1_42_1","volume-title":"A Calculus of Communicating Systems","author":"Milner R.","unstructured":"]] Milner , R. 1982. A Calculus of Communicating Systems . Springer . ]]Milner, R. 1982. A Calculus of Communicating Systems. Springer."},{"key":"e_1_2_1_43_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-85361-9_13"},{"key":"e_1_2_1_44_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICWS.2005.27"},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.1051\/ita\/1993270605231"},{"key":"e_1_2_1_46_1","first-page":"173","article-title":"Some algorithmic and proof-theoretical aspects of coercive subtyping","volume":"1512","author":"Soloviev S.","year":"1996","unstructured":"]] Soloviev , S. , Jones , A. , and Luo , Z. 1996 . Some algorithmic and proof-theoretical aspects of coercive subtyping . Lecture Notes in Computer Science , vol. 1512 , Spring er, 173 -- 196 . ]]Soloviev, S., Jones, A., and Luo, Z. 1996. Some algorithmic and proof-theoretical aspects of coercive subtyping. Lecture Notes in Computer Science, vol. 1512, Springer, 173--196.","journal-title":"Lecture Notes in Computer Science"},{"key":"e_1_2_1_47_1","volume-title":"Proceedings of the Parallel Architectures and Languages Europe. 398--413","author":"Takeuchi K.","unstructured":"]] Takeuchi , K. , Honda , K. , and Kubo , M . 1994. An interaction-based language and its typing system . In Proceedings of the Parallel Architectures and Languages Europe. 398--413 . ]]Takeuchi, K., Honda, K., and Kubo, M. 1994. An interaction-based language and its typing system. In Proceedings of the Parallel Architectures and Languages Europe. 398--413."},{"key":"e_1_2_1_48_1","volume-title":"Proceedings of the International Semantic Web Conference. 380--394","author":"Traverso P.","unstructured":"]] Traverso , P. and Pistore , M . 2004. Automated composition of semantic Web services into executable processes . In Proceedings of the International Semantic Web Conference. 380--394 . ]]Traverso, P. and Pistore, M. 2004. Automated composition of semantic Web services into executable processes. In Proceedings of the International Semantic Web Conference. 380--394."}],"container-title":["ACM Transactions on Programming Languages and Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1538917.1538920","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/1538917.1538920","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T20:26:54Z","timestamp":1750278414000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1538917.1538920"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2009,6]]},"references-count":48,"journal-issue":{"issue":"5","published-print":{"date-parts":[[2009,6]]}},"alternative-id":["10.1145\/1538917.1538920"],"URL":"https:\/\/doi.org\/10.1145\/1538917.1538920","relation":{},"ISSN":["0164-0925","1558-4593"],"issn-type":[{"value":"0164-0925","type":"print"},{"value":"1558-4593","type":"electronic"}],"subject":[],"published":{"date-parts":[[2009,6]]},"assertion":[{"value":"2008-05-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2009-01-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2009-07-03","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}