Home > SOA Glossary > Interface Inheritance (WSDL 2.0)

Interface Inheritance (WSDL 2.0)

Interface inheritance is a concept introduced by WSDL 2.0, borrowing from the concept of inheritance in object-oriented programming. It allows you to define an interface that includes all the operations and faults from the interface it is derived from (plus additional operations and faults can be defined for the new interface). This feature is intended to encourage reusability of WSDL definitions.

The following Example 14.10 demonstrates the application if interface inheritance through the use of the extends attribute. This example is from Chapter 14 of the book Web Service Contract Design and Versioning for SOA:

The ifPurchaseOrderAdmin interface element with an extends attribute pointing to the tns:ifPurchaseOrder interface element.

See also: