The design of an XML schema can impact the implementation of a WSDL document. Often, XML schemas are designed as nested components. This limits the scope of the XML schema and it cannot be used outside the nesting component.

Ideally, a schema should be designed so that it can be reused. You do this by organizing components as individual type definitions. These defined types can then be referenced from multiple locations in a WSDL document.

In the code example, the Address data structure is defined in an XML schema and referenced in the WSDL document.