<xs:schema targetNamespace="http://hr.example.com"> <xs:complexType name="ManagerServiceReference"> <xs:restriction base="uriref:URIServiceReference"> <xs:attribute name="interface" value="hr:Manager" fixed="true"/> </xs:restriction> </xs:complexType> <xs:complexType name="EmployeeServiceReference"> <xs:restriction base="uriref:URIServiceReference"> <xs:attribute name="interface" value="hr:Employee" fixed="true"/> </xs:restriction> </xs:complexType> <xs:element name="DepartmentNumber" type="xs:string"/> <xs:element name="Department"> <xs:complexType> <xs:sequence> <xs:element name="Manager" type="tns:ManagerServiceReference"/> <xs:element name="Engineer" type="tns:EmployeeServiceReference" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="deptno" type="xs:string"/> </xs:complexType> </xs:element> </xs:schema
|