epp-1.0.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <schema targetNamespace="urn:ietf:params:xml:ns:epp-1.0"
  3. xmlns:epp="urn:ietf:params:xml:ns:epp-1.0"
  4. xmlns:eppcom="urn:ietf:params:xml:ns:eppcom-1.0"
  5. xmlns="http://www.w3.org/2001/XMLSchema"
  6. elementFormDefault="qualified">
  7. <!--
  8. Import common element types.
  9. -->
  10. <import namespace="urn:ietf:params:xml:ns:eppcom-1.0"/>
  11. <annotation>
  12. <documentation>
  13. Extensible Provisioning Protocol v1.0 schema.
  14. </documentation>
  15. </annotation>
  16. <!--
  17. Every EPP XML instance must begin with this element.
  18. -->
  19. <element name="epp" type="epp:eppType"/>
  20. <!--
  21. An EPP XML instance must contain a greeting, hello, command,
  22. response, or extension.
  23. -->
  24. <complexType name="eppType">
  25. <choice>
  26. <element name="greeting" type="epp:greetingType"/>
  27. <element name="hello"/>
  28. <element name="command" type="epp:commandType"/>
  29. <element name="response" type="epp:responseType"/>
  30. <element name="extension" type="epp:extAnyType"/>
  31. </choice>
  32. </complexType>
  33. <!--
  34. A greeting is sent by a server in response to a client connection
  35. or <hello>.
  36. -->
  37. <complexType name="greetingType">
  38. <sequence>
  39. <element name="svID" type="epp:sIDType"/>
  40. <element name="svDate" type="dateTime"/>
  41. <element name="svcMenu" type="epp:svcMenuType"/>
  42. <element name="dcp" type="epp:dcpType"/>
  43. </sequence>
  44. </complexType>
  45. <!--
  46. Server IDs are strings with minimum and maximum length restrictions.
  47. -->
  48. <simpleType name="sIDType">
  49. <restriction base="normalizedString">
  50. <minLength value="3"/>
  51. <maxLength value="64"/>
  52. </restriction>
  53. </simpleType>
  54. <!--
  55. A server greeting identifies available object services.
  56. -->
  57. <complexType name="svcMenuType">
  58. <sequence>
  59. <element name="version" type="epp:versionType"
  60. maxOccurs="unbounded"/>
  61. <element name="lang" type="language"
  62. maxOccurs="unbounded"/>
  63. <element name="objURI" type="anyURI"
  64. maxOccurs="unbounded"/>
  65. <element name="svcExtension" type="epp:extURIType"
  66. minOccurs="0"/>
  67. </sequence>
  68. </complexType>
  69. <!--
  70. Data Collection Policy types.
  71. -->
  72. <complexType name="dcpType">
  73. <sequence>
  74. <element name="access" type="epp:dcpAccessType"/>
  75. <element name="statement" type="epp:dcpStatementType"
  76. maxOccurs="unbounded"/>
  77. <element name="expiry" type="epp:dcpExpiryType"
  78. minOccurs="0"/>
  79. </sequence>
  80. </complexType>
  81. <complexType name="dcpAccessType">
  82. <choice>
  83. <element name="all"/>
  84. <element name="none"/>
  85. <element name="null"/>
  86. <element name="other"/>
  87. <element name="personal"/>
  88. <element name="personalAndOther"/>
  89. </choice>
  90. </complexType>
  91. <complexType name="dcpStatementType">
  92. <sequence>
  93. <element name="purpose" type="epp:dcpPurposeType"/>
  94. <element name="recipient" type="epp:dcpRecipientType"/>
  95. <element name="retention" type="epp:dcpRetentionType"/>
  96. </sequence>
  97. </complexType>
  98. <complexType name="dcpPurposeType">
  99. <sequence>
  100. <element name="admin"
  101. minOccurs="0"/>
  102. <element name="contact"
  103. minOccurs="0"/>
  104. <element name="other"
  105. minOccurs="0"/>
  106. <element name="prov"
  107. minOccurs="0"/>
  108. </sequence>
  109. </complexType>
  110. <complexType name="dcpRecipientType">
  111. <sequence>
  112. <element name="other"
  113. minOccurs="0"/>
  114. <element name="ours" type="epp:dcpOursType"
  115. minOccurs="0" maxOccurs="unbounded"/>
  116. <element name="public"
  117. minOccurs="0"/>
  118. <element name="same"
  119. minOccurs="0"/>
  120. <element name="unrelated"
  121. minOccurs="0"/>
  122. </sequence>
  123. </complexType>
  124. <complexType name="dcpOursType">
  125. <sequence>
  126. <element name="recDesc" type="epp:dcpRecDescType"
  127. minOccurs="0"/>
  128. </sequence>
  129. </complexType>
  130. <simpleType name="dcpRecDescType">
  131. <restriction base="token">
  132. <minLength value="1"/>
  133. <maxLength value="255"/>
  134. </restriction>
  135. </simpleType>
  136. <complexType name="dcpRetentionType">
  137. <choice>
  138. <element name="business"/>
  139. <element name="indefinite"/>
  140. <element name="legal"/>
  141. <element name="none"/>
  142. <element name="stated"/>
  143. </choice>
  144. </complexType>
  145. <complexType name="dcpExpiryType">
  146. <choice>
  147. <element name="absolute" type="dateTime"/>
  148. <element name="relative" type="duration"/>
  149. </choice>
  150. </complexType>
  151. <!--
  152. Extension framework types.
  153. -->
  154. <complexType name="extAnyType">
  155. <sequence>
  156. <any namespace="##other"
  157. maxOccurs="unbounded"/>
  158. </sequence>
  159. </complexType>
  160. <complexType name="extURIType">
  161. <sequence>
  162. <element name="extURI" type="anyURI"
  163. maxOccurs="unbounded"/>
  164. </sequence>
  165. </complexType>
  166. <!--
  167. An EPP version number is a dotted pair of decimal numbers.
  168. -->
  169. <simpleType name="versionType">
  170. <restriction base="token">
  171. <pattern value="[1-9]+\.[0-9]+"/>
  172. <enumeration value="1.0"/>
  173. </restriction>
  174. </simpleType>
  175. <!--
  176. Command types.
  177. -->
  178. <complexType name="commandType">
  179. <sequence>
  180. <choice>
  181. <element name="check" type="epp:readWriteType"/>
  182. <element name="create" type="epp:readWriteType"/>
  183. <element name="delete" type="epp:readWriteType"/>
  184. <element name="info" type="epp:readWriteType"/>
  185. <element name="login" type="epp:loginType"/>
  186. <element name="logout"/>
  187. <element name="poll" type="epp:pollType"/>
  188. <element name="renew" type="epp:readWriteType"/>
  189. <element name="transfer" type="epp:transferType"/>
  190. <element name="update" type="epp:readWriteType"/>
  191. </choice>
  192. <element name="extension" type="epp:extAnyType"
  193. minOccurs="0"/>
  194. <element name="clTRID" type="epp:trIDStringType"
  195. minOccurs="0"/>
  196. </sequence>
  197. </complexType>
  198. <!--
  199. The <login> command.
  200. -->
  201. <complexType name="loginType">
  202. <sequence>
  203. <element name="clID" type="eppcom:clIDType"/>
  204. <element name="pw" type="epp:pwType"/>
  205. <element name="newPW" type="epp:pwType"
  206. minOccurs="0"/>
  207. <element name="options" type="epp:credsOptionsType"/>
  208. <element name="svcs" type="epp:loginSvcType"/>
  209. </sequence>
  210. </complexType>
  211. <complexType name="credsOptionsType">
  212. <sequence>
  213. <element name="version" type="epp:versionType"/>
  214. <element name="lang" type="language"/>
  215. </sequence>
  216. </complexType>
  217. <simpleType name="pwType">
  218. <restriction base="token">
  219. <minLength value="6"/>
  220. <maxLength value="16"/>
  221. </restriction>
  222. </simpleType>
  223. <complexType name="loginSvcType">
  224. <sequence>
  225. <element name="objURI" type="anyURI"
  226. maxOccurs="unbounded"/>
  227. <element name="svcExtension" type="epp:extURIType"
  228. minOccurs="0"/>
  229. </sequence>
  230. </complexType>
  231. <!--
  232. The <poll> command.
  233. -->
  234. <complexType name="pollType">
  235. <attribute name="op" type="epp:pollOpType"
  236. use="required"/>
  237. <attribute name="msgID" type="token"/>
  238. </complexType>
  239. <simpleType name="pollOpType">
  240. <restriction base="token">
  241. <enumeration value="ack"/>
  242. <enumeration value="req"/>
  243. </restriction>
  244. </simpleType>
  245. <!--
  246. The <transfer> command. This is object-specific, and uses attributes
  247. to identify the requested operation.
  248. -->
  249. <complexType name="transferType">
  250. <sequence>
  251. <any namespace="##other"/>
  252. </sequence>
  253. <attribute name="op" type="epp:transferOpType"
  254. use="required"/>
  255. </complexType>
  256. <simpleType name="transferOpType">
  257. <restriction base="token">
  258. <enumeration value="approve"/>
  259. <enumeration value="cancel"/>
  260. <enumeration value="query"/>
  261. <enumeration value="reject"/>
  262. <enumeration value="request"/>
  263. </restriction>
  264. </simpleType>
  265. <!--
  266. All other object-centric commands. EPP doesn't specify the syntax or
  267. semantics of object-centric command elements. The elements MUST be
  268. described in detail in another schema specific to the object.
  269. -->
  270. <complexType name="readWriteType">
  271. <sequence>
  272. <any namespace="##other"/>
  273. </sequence>
  274. </complexType>
  275. <complexType name="trIDType">
  276. <sequence>
  277. <element name="clTRID" type="epp:trIDStringType"
  278. minOccurs="0"/>
  279. <element name="svTRID" type="epp:trIDStringType"/>
  280. </sequence>
  281. </complexType>
  282. <simpleType name="trIDStringType">
  283. <restriction base="token">
  284. <minLength value="3"/>
  285. <maxLength value="64"/>
  286. </restriction>
  287. </simpleType>
  288. <!--
  289. Response types.
  290. -->
  291. <complexType name="responseType">
  292. <sequence>
  293. <element name="result" type="epp:resultType"
  294. maxOccurs="unbounded"/>
  295. <element name="msgQ" type="epp:msgQType"
  296. minOccurs="0"/>
  297. <element name="resData" type="epp:extAnyType"
  298. minOccurs="0"/>
  299. <element name="extension" type="epp:extAnyType"
  300. minOccurs="0"/>
  301. <element name="trID" type="epp:trIDType"/>
  302. </sequence>
  303. </complexType>
  304. <complexType name="resultType">
  305. <sequence>
  306. <element name="msg" type="epp:msgType"/>
  307. <choice minOccurs="0" maxOccurs="unbounded">
  308. <element name="value" type="epp:errValueType"/>
  309. <element name="extValue" type="epp:extErrValueType"/>
  310. </choice>
  311. </sequence>
  312. <attribute name="code" type="epp:resultCodeType"
  313. use="required"/>
  314. </complexType>
  315. <complexType name="errValueType" mixed="true">
  316. <sequence>
  317. <any namespace="##any" processContents="skip"/>
  318. </sequence>
  319. <anyAttribute namespace="##any" processContents="skip"/>
  320. </complexType>
  321. <complexType name="extErrValueType">
  322. <sequence>
  323. <element name="value" type="epp:errValueType"/>
  324. <element name="reason" type="epp:msgType"/>
  325. </sequence>
  326. </complexType>
  327. <complexType name="msgQType">
  328. <sequence>
  329. <element name="qDate" type="dateTime"
  330. minOccurs="0"/>
  331. <element name="msg" type="epp:mixedMsgType"
  332. minOccurs="0"/>
  333. </sequence>
  334. <attribute name="count" type="unsignedLong"
  335. use="required"/>
  336. <attribute name="id" type="eppcom:minTokenType"
  337. use="required"/>
  338. </complexType>
  339. <complexType name="mixedMsgType" mixed="true">
  340. <sequence>
  341. <any processContents="skip"
  342. minOccurs="0" maxOccurs="unbounded"/>
  343. </sequence>
  344. <attribute name="lang" type="language"
  345. default="en"/>
  346. </complexType>
  347. <!--
  348. Human-readable text may be expressed in languages other than English.
  349. -->
  350. <complexType name="msgType">
  351. <simpleContent>
  352. <extension base="normalizedString">
  353. <attribute name="lang" type="language"
  354. default="en"/>
  355. </extension>
  356. </simpleContent>
  357. </complexType>
  358. <!--
  359. EPP result codes.
  360. -->
  361. <simpleType name="resultCodeType">
  362. <restriction base="unsignedShort">
  363. <enumeration value="1000"/>
  364. <enumeration value="1001"/>
  365. <enumeration value="1300"/>
  366. <enumeration value="1301"/>
  367. <enumeration value="1500"/>
  368. <enumeration value="2000"/>
  369. <enumeration value="2001"/>
  370. <enumeration value="2002"/>
  371. <enumeration value="2003"/>
  372. <enumeration value="2004"/>
  373. <enumeration value="2005"/>
  374. <enumeration value="2100"/>
  375. <enumeration value="2101"/>
  376. <enumeration value="2102"/>
  377. <enumeration value="2103"/>
  378. <enumeration value="2104"/>
  379. <enumeration value="2105"/>
  380. <enumeration value="2106"/>
  381. <enumeration value="2200"/>
  382. <enumeration value="2201"/>
  383. <enumeration value="2202"/>
  384. <enumeration value="2300"/>
  385. <enumeration value="2301"/>
  386. <enumeration value="2302"/>
  387. <enumeration value="2303"/>
  388. <enumeration value="2304"/>
  389. <enumeration value="2305"/>
  390. <enumeration value="2306"/>
  391. <enumeration value="2307"/>
  392. <enumeration value="2308"/>
  393. <enumeration value="2400"/>
  394. <enumeration value="2500"/>
  395. <enumeration value="2501"/>
  396. <enumeration value="2502"/>
  397. </restriction>
  398. </simpleType>
  399. <!--
  400. End of schema.
  401. -->
  402. </schema>