Conversie van de TransSmart solution van BizTalk 2013 naar 2016.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

289 line
19KB

  1. <?xml version="1.0" encoding="utf-16"?>
  2. <xs:schema xmlns="http://TM.nShift.messages" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" targetNamespace="http://TM.nShift.messages" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  3. <xs:element name="shipmentStatus">
  4. <xs:simpleType>
  5. <xs:restriction base="xs:string">
  6. <xs:minLength value="0" />
  7. <xs:maxLength value="8" />
  8. <xs:enumeration value="DONE" />
  9. <xs:enumeration value="TRNS" />
  10. <xs:enumeration value="ACCEP" />
  11. </xs:restriction>
  12. </xs:simpleType>
  13. </xs:element>
  14. <xs:element name="pickupDate">
  15. <xs:simpleType>
  16. <xs:restriction base="xs:string">
  17. <xs:minLength value="0" />
  18. <xs:maxLength value="8" />
  19. </xs:restriction>
  20. </xs:simpleType>
  21. </xs:element>
  22. <xs:element name="currency">
  23. <xs:simpleType>
  24. <xs:restriction base="xs:string">
  25. <xs:minLength value="0" />
  26. <xs:maxLength value="64" />
  27. </xs:restriction>
  28. </xs:simpleType>
  29. </xs:element>
  30. <xs:element name="statusPrice">
  31. <xs:simpleType>
  32. <xs:restriction base="xs:decimal">
  33. <xs:minInclusive value="0" />
  34. <xs:maxInclusive value="11" />
  35. </xs:restriction>
  36. </xs:simpleType>
  37. </xs:element>
  38. <xs:element name="incoterms">
  39. <xs:simpleType>
  40. <xs:restriction base="xs:string">
  41. <xs:minLength value="0" />
  42. <xs:maxLength value="128" />
  43. </xs:restriction>
  44. </xs:simpleType>
  45. </xs:element>
  46. <xs:element name="NoPieces">
  47. <xs:simpleType>
  48. <xs:restriction base="xs:string">
  49. <xs:minLength value="0" />
  50. <xs:maxLength value="128" />
  51. </xs:restriction>
  52. </xs:simpleType>
  53. </xs:element>
  54. <xs:element name="reference">
  55. <xs:simpleType>
  56. <xs:restriction base="xs:string">
  57. <xs:minLength value="0" />
  58. <xs:maxLength value="256" />
  59. </xs:restriction>
  60. </xs:simpleType>
  61. </xs:element>
  62. <xs:element name="trackingUrl">
  63. <xs:simpleType>
  64. <xs:restriction base="xs:string">
  65. <xs:minLength value="0" />
  66. <xs:maxLength value="2048" />
  67. </xs:restriction>
  68. </xs:simpleType>
  69. </xs:element>
  70. <xs:element name="shipment">
  71. <xs:complexType>
  72. <xs:all>
  73. <xs:element minOccurs="0" ref="lineNo" />
  74. <xs:element minOccurs="0" ref="statusTimeStamp" />
  75. <xs:element minOccurs="0" ref="awb" />
  76. <xs:element minOccurs="0" ref="reference" />
  77. <xs:element minOccurs="0" maxOccurs="1" ref="NoPieces" />
  78. <xs:element minOccurs="0" ref="weight" />
  79. <xs:element minOccurs="0" ref="weight_uom" />
  80. <xs:element minOccurs="0" ref="incoterms" />
  81. <xs:element minOccurs="0" ref="statusPrice" />
  82. <xs:element minOccurs="0" ref="currency" />
  83. <xs:element minOccurs="0" ref="plannedDeliveryDate" />
  84. <xs:element minOccurs="0" ref="plannedDeliveryTimeFrom" />
  85. <xs:element minOccurs="0" ref="plannedDeliveryTimeTo" />
  86. <xs:element minOccurs="0" ref="deliveryDate" />
  87. <xs:element minOccurs="0" ref="deliveryTime" />
  88. <xs:element minOccurs="0" ref="acceptedBy" />
  89. <xs:element minOccurs="0" ref="pickupDate" />
  90. <xs:element minOccurs="0" ref="shipmentStatus" />
  91. <xs:element minOccurs="0" ref="carrierStatusCode" />
  92. <xs:element minOccurs="0" ref="carrierStatusDescription" />
  93. <xs:element minOccurs="0" ref="trackingUrl" />
  94. <xs:element minOccurs="0" ref="documents" />
  95. </xs:all>
  96. </xs:complexType>
  97. </xs:element>
  98. <xs:element name="documents">
  99. <xs:complexType>
  100. <xs:sequence>
  101. <xs:element maxOccurs="unbounded" ref="document" />
  102. </xs:sequence>
  103. </xs:complexType>
  104. </xs:element>
  105. <xs:element name="document">
  106. <xs:complexType>
  107. <xs:all>
  108. <xs:element ref="documentType" />
  109. <xs:element ref="fileType" />
  110. <xs:element ref="documentData" />
  111. </xs:all>
  112. </xs:complexType>
  113. </xs:element>
  114. <xs:element name="documentType">
  115. <xs:simpleType>
  116. <xs:restriction base="xs:string">
  117. <xs:minLength value="0" />
  118. <xs:maxLength value="10" />
  119. </xs:restriction>
  120. </xs:simpleType>
  121. </xs:element>
  122. <xs:element name="fileType">
  123. <xs:simpleType>
  124. <xs:restriction base="xs:string">
  125. <xs:minLength value="0" />
  126. <xs:maxLength value="10" />
  127. </xs:restriction>
  128. </xs:simpleType>
  129. </xs:element>
  130. <xs:element name="documentData" type="xs:string" />
  131. <xs:element name="weight_uom">
  132. <xs:simpleType>
  133. <xs:restriction base="xs:string">
  134. <xs:minLength value="0" />
  135. <xs:maxLength value="3" />
  136. </xs:restriction>
  137. </xs:simpleType>
  138. </xs:element>
  139. <xs:element name="weight">
  140. <xs:simpleType>
  141. <xs:restriction base="xs:decimal">
  142. <xs:minInclusive value="0" />
  143. <xs:maxInclusive value="11" />
  144. </xs:restriction>
  145. </xs:simpleType>
  146. </xs:element>
  147. <xs:element name="statusTimeStamp" type="xs:anyType" />
  148. <xs:element name="statusCode">
  149. <xs:simpleType>
  150. <xs:restriction base="xs:string">
  151. <xs:minLength value="0" />
  152. <xs:maxLength value="8" />
  153. <xs:enumeration value="DONE" />
  154. <xs:enumeration value="TRNS" />
  155. <xs:enumeration value="ACCEP" />
  156. </xs:restriction>
  157. </xs:simpleType>
  158. </xs:element>
  159. <xs:element name="status">
  160. <xs:complexType>
  161. <xs:sequence>
  162. <xs:element minOccurs="0" ref="pieces" />
  163. <xs:element minOccurs="0" maxOccurs="unbounded" ref="shipment" />
  164. </xs:sequence>
  165. <xs:attribute name="carrier" use="required">
  166. <xs:simpleType>
  167. <xs:restriction base="xs:string" />
  168. </xs:simpleType>
  169. </xs:attribute>
  170. </xs:complexType>
  171. </xs:element>
  172. <xs:element name="root">
  173. <xs:complexType>
  174. <xs:sequence>
  175. <xs:element ref="status" />
  176. </xs:sequence>
  177. </xs:complexType>
  178. </xs:element>
  179. <xs:element name="price">
  180. <xs:simpleType>
  181. <xs:restriction base="xs:decimal">
  182. <xs:minInclusive value="0" />
  183. <xs:maxInclusive value="11" />
  184. </xs:restriction>
  185. </xs:simpleType>
  186. </xs:element>
  187. <xs:element name="plannedDeliveryDate">
  188. <xs:simpleType>
  189. <xs:restriction base="xs:string">
  190. <xs:minLength value="0" />
  191. <xs:maxLength value="8" />
  192. </xs:restriction>
  193. </xs:simpleType>
  194. </xs:element>
  195. <xs:element name="plannedDeliveryTimeTo">
  196. <xs:simpleType>
  197. <xs:restriction base="xs:string">
  198. <xs:minLength value="0" />
  199. <xs:maxLength value="6" />
  200. </xs:restriction>
  201. </xs:simpleType>
  202. </xs:element>
  203. <xs:element name="plannedDeliveryTimeFrom">
  204. <xs:simpleType>
  205. <xs:restriction base="xs:string">
  206. <xs:minLength value="0" />
  207. <xs:maxLength value="6" />
  208. </xs:restriction>
  209. </xs:simpleType>
  210. </xs:element>
  211. <xs:element name="deliveryDate">
  212. <xs:simpleType>
  213. <xs:restriction base="xs:string">
  214. <xs:minLength value="0" />
  215. <xs:maxLength value="8" />
  216. </xs:restriction>
  217. </xs:simpleType>
  218. </xs:element>
  219. <xs:element name="deliveryTime">
  220. <xs:simpleType>
  221. <xs:restriction base="xs:string">
  222. <xs:minLength value="0" />
  223. <xs:maxLength value="6" />
  224. </xs:restriction>
  225. </xs:simpleType>
  226. </xs:element>
  227. <xs:element name="pieces">
  228. <xs:complexType>
  229. <xs:sequence>
  230. <xs:element maxOccurs="unbounded" ref="piece" />
  231. </xs:sequence>
  232. </xs:complexType>
  233. </xs:element>
  234. <xs:element name="piece">
  235. <xs:complexType>
  236. <xs:all>
  237. <xs:element ref="lineNo" />
  238. <xs:element minOccurs="0" ref="statusTimeStamp" />
  239. <xs:element ref="awb" />
  240. <xs:element minOccurs="0" ref="weight" />
  241. <xs:element minOccurs="0" ref="weight_uom" />
  242. <xs:element minOccurs="0" ref="price" />
  243. <xs:element minOccurs="0" ref="plannedDeliveryDate" />
  244. <xs:element minOccurs="0" ref="plannedDeliveryTimeFrom" />
  245. <xs:element minOccurs="0" ref="plannedDeliveryTimeTo" />
  246. <xs:element minOccurs="0" ref="deliveryDate" />
  247. <xs:element minOccurs="0" ref="deliveryTime" />
  248. <xs:element minOccurs="0" ref="acceptedBy" />
  249. <xs:element minOccurs="0" ref="statusCode" />
  250. <xs:element minOccurs="0" ref="carrierStatusCode" />
  251. <xs:element minOccurs="0" ref="carrierStatusDescription" />
  252. <xs:element minOccurs="0" ref="documents" />
  253. </xs:all>
  254. </xs:complexType>
  255. </xs:element>
  256. <xs:element name="lineNo" type="xs:int" />
  257. <xs:element name="carrierStatusDescription">
  258. <xs:simpleType>
  259. <xs:restriction base="xs:string">
  260. <xs:minLength value="0" />
  261. <xs:maxLength value="128" />
  262. </xs:restriction>
  263. </xs:simpleType>
  264. </xs:element>
  265. <xs:element name="carrierStatusCode">
  266. <xs:simpleType>
  267. <xs:restriction base="xs:string">
  268. <xs:minLength value="0" />
  269. <xs:maxLength value="16" />
  270. </xs:restriction>
  271. </xs:simpleType>
  272. </xs:element>
  273. <xs:element name="awb">
  274. <xs:simpleType>
  275. <xs:restriction base="xs:string">
  276. <xs:minLength value="0" />
  277. <xs:maxLength value="256" />
  278. </xs:restriction>
  279. </xs:simpleType>
  280. </xs:element>
  281. <xs:element name="acceptedBy">
  282. <xs:simpleType>
  283. <xs:restriction base="xs:string">
  284. <xs:minLength value="0" />
  285. <xs:maxLength value="64" />
  286. </xs:restriction>
  287. </xs:simpleType>
  288. </xs:element>
  289. </xs:schema>