-
Notifications
You must be signed in to change notification settings - Fork 10
/
employee.xsd
59 lines (59 loc) · 2.24 KB
/
employee.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" xmlns:n1="http://www.jpworks.com/employee" targetNamespace="http://www.jpworks.com/employee" elementFormDefault="qualified" attributeFormDefault="unqualified" vc:minVersion="1.1">
<xs:element name="employee">
<xs:annotation>
<xs:documentation>Employee personal information</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence maxOccurs="unbounded">
<xs:element ref="n1:address"/>
</xs:sequence>
<xs:attribute name="id" type="xs:long" use="required"/>
<xs:attribute name="firstname" type="xs:string" use="required"/>
<xs:attribute name="lastname" type="xs:string" use="required"/>
<xs:attribute name="birthdate" type="xs:date" use="required"/>
<xs:attribute name="gender" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="address">
<xs:annotation>
<xs:documentation>Address of the employee</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="fromdate" type="xs:date" use="required"/>
<xs:attribute name="todate" type="xs:date" use="optional"/>
<xs:attribute name="address" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="EmployeeResponse">
<xs:complexType>
<xs:sequence minOccurs="0">
<xs:element ref="n1:employee"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="EmployeesResponse">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element ref="n1:employee"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="EmployeeByIdRequest">
<xs:annotation>
<xs:documentation>Query employee by Id</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="id" type="xs:long" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="EmployeeByNameRequest">
<xs:annotation>
<xs:documentation>Query an employee by name</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="firstname" type="xs:string" use="optional"/>
<xs:attribute name="lastname" type="xs:string" use="optional"/>
</xs:complexType>
</xs:element>
</xs:schema>