From 3f90a2968d9f463567dd794856bfaff3c42d184a Mon Sep 17 00:00:00 2001 From: mark Date: Mon, 15 Jun 2020 12:35:07 +0100 Subject: [PATCH] TS 103 221-1 v1.5.1 (2019-07-30) agreed at LI#51 (Texel, 2019-06-11) --- 103221-1/TS_103_221_01.xsd | 1646 ++++++++--------- .../examples/ActivateTaskRequest_example.xml | 2 +- .../examples/ActivateTaskResponse_example.xml | 2 +- .../CreateDestinationRequest_example.xml | 2 +- .../CreateDestinationResponse_example.xml | 2 +- .../DeactivateTaskRequest_example.xml | 2 +- .../DeactivateTaskResponse_example.xml | 2 +- .../examples/GetAllDetailsRequest_example.xml | 2 +- .../GetAllDetailsResponse_example.xml | 2 +- .../GetDestinationDetailsRequest_example.xml | 2 +- .../GetDestinationDetailsResponse_example.xml | 2 +- .../examples/GetNEStatusRequest_example.xml | 2 +- .../examples/GetNEStatusResponse_example.xml | 2 +- .../GetTaskDetailsRequest_example.xml | 2 +- .../GetTaskDetailsResponse_example.xml | 2 +- .../examples/KeepaliveRequest_example.xml | 2 +- .../examples/KeepaliveResponse_example.xml | 2 +- .../ListAllDetailsRequest_example.xml | 4 +- .../ListAllDetailsResponse_example.xml | 4 +- .../examples/ModifyTaskRequest_example.xml | 2 +- .../examples/ModifyTaskResponse_example.xml | 2 +- 103221-1/examples/PingRequest_example.xml | 2 +- 103221-1/examples/PingResponse_example.xml | 2 +- .../RemoveAllDestinationsRequest_example.xml | 2 +- .../RemoveAllDestinationsResponse_example.xml | 2 +- .../RemoveDestinationRequest_example.xml | 4 +- .../RemoveDestinationResponse_example.xml | 2 +- .../ReportDestinationIssueRequest_example.xml | 2 +- ...ReportDestinationIssueResponse_example.xml | 2 +- .../examples/ReportNEIssueRequest_example.xml | 2 +- .../ReportNEIssueResponse_example.xml | 2 +- .../ReportTaskIssueRequest_example.xml | 2 +- .../ReportTaskIssueResponse_example.xml | 2 +- 103221-1/examples/validate_examples.py | 93 + .../ActivateTaskRequest_example.xml | 2 +- .../ActivateTaskResponse_example.xml | 2 +- .../CreateDestinationRequest_example.xml | 2 +- .../CreateDestinationResponse_example.xml | 2 +- .../DeactivateTaskRequest_example.xml | 2 +- .../DeactivateTaskResponse_example.xml | 2 +- .../GetAllDetailsRequest_example.xml | 2 +- .../GetAllDetailsResponse_example.xml | 2 +- .../GetDestinationDetailsRequest_example.xml | 2 +- .../GetDestinationDetailsResponse_example.xml | 2 +- .../GetNEStatusRequest_example.xml | 2 +- .../GetNEStatusResponse_example.xml | 2 +- .../GetTaskDetailsRequest_example.xml | 2 +- .../GetTaskDetailsResponse_example.xml | 2 +- .../{output => }/KeepaliveRequest_example.xml | 2 +- .../KeepaliveResponse_example.xml | 2 +- .../ListAllDetailsRequest_example.xml | 4 +- .../ListAllDetailsResponse_example.xml | 4 +- .../ModifyTaskRequest_example.xml | 2 +- .../ModifyTaskResponse_example.xml | 2 +- .../{output => }/PingRequest_example.xml | 2 +- .../{output => }/PingResponse_example.xml | 2 +- .../RemoveAllDestinationsRequest_example.xml | 2 +- .../RemoveAllDestinationsResponse_example.xml | 2 +- .../RemoveDestinationRequest_example.xml | 4 +- .../RemoveDestinationResponse_example.xml | 2 +- .../ReportDestinationIssueRequest_example.xml | 2 +- ...ReportDestinationIssueResponse_example.xml | 2 +- .../ReportNEIssueRequest_example.xml | 2 +- .../ReportNEIssueResponse_example.xml | 2 +- .../ReportTaskIssueRequest_example.xml | 2 +- .../ReportTaskIssueResponse_example.xml | 2 +- 103221-1/portal/TS_103_221_01_v010401.xsd | 861 --------- 103221-1/portal/TS_103_221_01_v010501.xsd | 789 ++++++++ 103221-1/portal/validate_examples.py | 93 + 69 files changed, 1832 insertions(+), 1790 deletions(-) create mode 100644 103221-1/examples/validate_examples.py rename 103221-1/portal/{output => }/ActivateTaskRequest_example.xml (96%) rename 103221-1/portal/{output => }/ActivateTaskResponse_example.xml (93%) rename 103221-1/portal/{output => }/CreateDestinationRequest_example.xml (96%) rename 103221-1/portal/{output => }/CreateDestinationResponse_example.xml (93%) rename 103221-1/portal/{output => }/DeactivateTaskRequest_example.xml (93%) rename 103221-1/portal/{output => }/DeactivateTaskResponse_example.xml (93%) rename 103221-1/portal/{output => }/GetAllDetailsRequest_example.xml (93%) rename 103221-1/portal/{output => }/GetAllDetailsResponse_example.xml (98%) rename 103221-1/portal/{output => }/GetDestinationDetailsRequest_example.xml (93%) rename 103221-1/portal/{output => }/GetDestinationDetailsResponse_example.xml (97%) rename 103221-1/portal/{output => }/GetNEStatusRequest_example.xml (92%) rename 103221-1/portal/{output => }/GetNEStatusResponse_example.xml (94%) rename 103221-1/portal/{output => }/GetTaskDetailsRequest_example.xml (93%) rename 103221-1/portal/{output => }/GetTaskDetailsResponse_example.xml (96%) rename 103221-1/portal/{output => }/KeepaliveRequest_example.xml (92%) rename 103221-1/portal/{output => }/KeepaliveResponse_example.xml (93%) rename 103221-1/portal/{output => }/ListAllDetailsRequest_example.xml (78%) rename 103221-1/portal/{output => }/ListAllDetailsResponse_example.xml (84%) rename 103221-1/portal/{output => }/ModifyTaskRequest_example.xml (96%) rename 103221-1/portal/{output => }/ModifyTaskResponse_example.xml (93%) rename 103221-1/portal/{output => }/PingRequest_example.xml (92%) rename 103221-1/portal/{output => }/PingResponse_example.xml (93%) rename 103221-1/portal/{output => }/RemoveAllDestinationsRequest_example.xml (93%) rename 103221-1/portal/{output => }/RemoveAllDestinationsResponse_example.xml (93%) rename 103221-1/portal/{output => }/RemoveDestinationRequest_example.xml (81%) rename 103221-1/portal/{output => }/RemoveDestinationResponse_example.xml (93%) rename 103221-1/portal/{output => }/ReportDestinationIssueRequest_example.xml (95%) rename 103221-1/portal/{output => }/ReportDestinationIssueResponse_example.xml (93%) rename 103221-1/portal/{output => }/ReportNEIssueRequest_example.xml (94%) rename 103221-1/portal/{output => }/ReportNEIssueResponse_example.xml (93%) rename 103221-1/portal/{output => }/ReportTaskIssueRequest_example.xml (94%) rename 103221-1/portal/{output => }/ReportTaskIssueResponse_example.xml (93%) delete mode 100644 103221-1/portal/TS_103_221_01_v010401.xsd create mode 100644 103221-1/portal/TS_103_221_01_v010501.xsd create mode 100644 103221-1/portal/validate_examples.py diff --git a/103221-1/TS_103_221_01.xsd b/103221-1/TS_103_221_01.xsd index ef56282..cb1ebf0 100644 --- a/103221-1/TS_103_221_01.xsd +++ b/103221-1/TS_103_221_01.xsd @@ -1,861 +1,789 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/103221-1/examples/ActivateTaskRequest_example.xml b/103221-1/examples/ActivateTaskRequest_example.xml index 934993e..76f510b 100644 --- a/103221-1/examples/ActivateTaskRequest_example.xml +++ b/103221-1/examples/ActivateTaskRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.247432Z - v1.1.1 + v1.5.1 3741800e-971b-4aa9-85f4-466d2b1adc7f 29f28e1c-f230-486a-a860-f5a784ab9172 diff --git a/103221-1/examples/ActivateTaskResponse_example.xml b/103221-1/examples/ActivateTaskResponse_example.xml index 9d4aa09..9a04c2a 100644 --- a/103221-1/examples/ActivateTaskResponse_example.xml +++ b/103221-1/examples/ActivateTaskResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.401571Z - v1.1.1 + v1.5.1 3741800e-971b-4aa9-85f4-466d2b1adc7f AcknowledgedAndCompleted diff --git a/103221-1/examples/CreateDestinationRequest_example.xml b/103221-1/examples/CreateDestinationRequest_example.xml index 6579d01..89b1a37 100644 --- a/103221-1/examples/CreateDestinationRequest_example.xml +++ b/103221-1/examples/CreateDestinationRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.446605Z - v1.1.1 + v1.5.1 8e8ca539-e4dd-41f3-b1cb-acc2a5edece0 b0ce308c-aa17-42bd-a27b-287bcb5b3468 diff --git a/103221-1/examples/CreateDestinationResponse_example.xml b/103221-1/examples/CreateDestinationResponse_example.xml index 0000489..8eae1de 100644 --- a/103221-1/examples/CreateDestinationResponse_example.xml +++ b/103221-1/examples/CreateDestinationResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.446605Z - v1.1.1 + v1.5.1 8e8ca539-e4dd-41f3-b1cb-acc2a5edece0 AcknowledgedAndCompleted diff --git a/103221-1/examples/DeactivateTaskRequest_example.xml b/103221-1/examples/DeactivateTaskRequest_example.xml index c9e759f..10797cf 100644 --- a/103221-1/examples/DeactivateTaskRequest_example.xml +++ b/103221-1/examples/DeactivateTaskRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.429594Z - v1.1.1 + v1.5.1 3da0df97-7bd5-4413-936d-74bebd7512fe 29f28e1c-f230-486a-a860-f5a784ab9172 diff --git a/103221-1/examples/DeactivateTaskResponse_example.xml b/103221-1/examples/DeactivateTaskResponse_example.xml index 5a377d1..c34ec56 100644 --- a/103221-1/examples/DeactivateTaskResponse_example.xml +++ b/103221-1/examples/DeactivateTaskResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.430594Z - v1.1.1 + v1.5.1 3da0df97-7bd5-4413-936d-74bebd7512fe AcknowledgedAndCompleted diff --git a/103221-1/examples/GetAllDetailsRequest_example.xml b/103221-1/examples/GetAllDetailsRequest_example.xml index 99e585a..cdbb8ee 100644 --- a/103221-1/examples/GetAllDetailsRequest_example.xml +++ b/103221-1/examples/GetAllDetailsRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.496243Z - v1.1.1 + v1.5.1 bfd0c982-b7d6-4a8e-80a0-89dab964aafd diff --git a/103221-1/examples/GetAllDetailsResponse_example.xml b/103221-1/examples/GetAllDetailsResponse_example.xml index 93663ce..287296e 100644 --- a/103221-1/examples/GetAllDetailsResponse_example.xml +++ b/103221-1/examples/GetAllDetailsResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.496743Z - v1.1.1 + v1.5.1 bfd0c982-b7d6-4a8e-80a0-89dab964aafd OK diff --git a/103221-1/examples/GetDestinationDetailsRequest_example.xml b/103221-1/examples/GetDestinationDetailsRequest_example.xml index cc183c3..bc1ffa7 100644 --- a/103221-1/examples/GetDestinationDetailsRequest_example.xml +++ b/103221-1/examples/GetDestinationDetailsRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.462616Z - v1.1.1 + v1.5.1 7de5709c-8269-417f-a123-7087d3971f8c b0ce308c-aa17-42bd-a27b-287bcb5b3468 diff --git a/103221-1/examples/GetDestinationDetailsResponse_example.xml b/103221-1/examples/GetDestinationDetailsResponse_example.xml index 080274d..bbd6b9c 100644 --- a/103221-1/examples/GetDestinationDetailsResponse_example.xml +++ b/103221-1/examples/GetDestinationDetailsResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.462616Z - v1.1.1 + v1.5.1 7de5709c-8269-417f-a123-7087d3971f8c diff --git a/103221-1/examples/GetNEStatusRequest_example.xml b/103221-1/examples/GetNEStatusRequest_example.xml index 556e7f0..29c15b6 100644 --- a/103221-1/examples/GetNEStatusRequest_example.xml +++ b/103221-1/examples/GetNEStatusRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.487158Z - v1.1.1 + v1.5.1 93d571cb-3793-4385-8b59-2c14097ed743 diff --git a/103221-1/examples/GetNEStatusResponse_example.xml b/103221-1/examples/GetNEStatusResponse_example.xml index 8dc6247..ba19ff3 100644 --- a/103221-1/examples/GetNEStatusResponse_example.xml +++ b/103221-1/examples/GetNEStatusResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.488659Z - v1.1.1 + v1.5.1 93d571cb-3793-4385-8b59-2c14097ed743 OK diff --git a/103221-1/examples/GetTaskDetailsRequest_example.xml b/103221-1/examples/GetTaskDetailsRequest_example.xml index 0185b1a..491c90e 100644 --- a/103221-1/examples/GetTaskDetailsRequest_example.xml +++ b/103221-1/examples/GetTaskDetailsRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.418584Z - v1.1.1 + v1.5.1 609dcabd-5ab1-4c95-9681-a24681f105ac 29f28e1c-f230-486a-a860-f5a784ab9172 diff --git a/103221-1/examples/GetTaskDetailsResponse_example.xml b/103221-1/examples/GetTaskDetailsResponse_example.xml index b80bd03..5115b76 100644 --- a/103221-1/examples/GetTaskDetailsResponse_example.xml +++ b/103221-1/examples/GetTaskDetailsResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.420587Z - v1.1.1 + v1.5.1 609dcabd-5ab1-4c95-9681-a24681f105ac diff --git a/103221-1/examples/KeepaliveRequest_example.xml b/103221-1/examples/KeepaliveRequest_example.xml index 1bdbdc3..330e8db 100644 --- a/103221-1/examples/KeepaliveRequest_example.xml +++ b/103221-1/examples/KeepaliveRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.541784Z - v1.1.1 + v1.5.1 6420aa0f-e5e6-4a32-9dff-15b836589257 diff --git a/103221-1/examples/KeepaliveResponse_example.xml b/103221-1/examples/KeepaliveResponse_example.xml index 5ed4d81..923bbaa 100644 --- a/103221-1/examples/KeepaliveResponse_example.xml +++ b/103221-1/examples/KeepaliveResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.542783Z - v1.1.1 + v1.5.1 6420aa0f-e5e6-4a32-9dff-15b836589257 AcknowledgedAndCompleted diff --git a/103221-1/examples/ListAllDetailsRequest_example.xml b/103221-1/examples/ListAllDetailsRequest_example.xml index 229a918..b3f70b3 100644 --- a/103221-1/examples/ListAllDetailsRequest_example.xml +++ b/103221-1/examples/ListAllDetailsRequest_example.xml @@ -3,8 +3,8 @@ admfID neID - 2017-10-06T18:46:21.50833Z - v1.1.1 + 2017-10-06T18:46:21.508330Z + v1.5.1 09529160-2e44-49c6-bf54-204ca5edcfab diff --git a/103221-1/examples/ListAllDetailsResponse_example.xml b/103221-1/examples/ListAllDetailsResponse_example.xml index a1173f8..d762e08 100644 --- a/103221-1/examples/ListAllDetailsResponse_example.xml +++ b/103221-1/examples/ListAllDetailsResponse_example.xml @@ -3,8 +3,8 @@ admfID neID - 2017-10-06T18:46:21.50833Z - v1.1.1 + 2017-10-06T18:46:21.508330Z + v1.5.1 09529160-2e44-49c6-bf54-204ca5edcfab 29f28e1c-f230-486a-a860-f5a784ab9172 diff --git a/103221-1/examples/ModifyTaskRequest_example.xml b/103221-1/examples/ModifyTaskRequest_example.xml index 1db578f..bb48bac 100644 --- a/103221-1/examples/ModifyTaskRequest_example.xml +++ b/103221-1/examples/ModifyTaskRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.411587Z - v1.1.1 + v1.5.1 fcfc97de-1c77-413d-9925-d1630acbf763 29f28e1c-f230-486a-a860-f5a784ab9172 diff --git a/103221-1/examples/ModifyTaskResponse_example.xml b/103221-1/examples/ModifyTaskResponse_example.xml index 105124b..adfa3b5 100644 --- a/103221-1/examples/ModifyTaskResponse_example.xml +++ b/103221-1/examples/ModifyTaskResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.411587Z - v1.1.1 + v1.5.1 fcfc97de-1c77-413d-9925-d1630acbf763 AcknowledgedAndCompleted diff --git a/103221-1/examples/PingRequest_example.xml b/103221-1/examples/PingRequest_example.xml index 6697d38..d9687b6 100644 --- a/103221-1/examples/PingRequest_example.xml +++ b/103221-1/examples/PingRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.547786Z - v1.1.1 + v1.5.1 8f9fc2c5-923a-4a75-b70c-9e0c058bba45 diff --git a/103221-1/examples/PingResponse_example.xml b/103221-1/examples/PingResponse_example.xml index fd927da..9e4dadb 100644 --- a/103221-1/examples/PingResponse_example.xml +++ b/103221-1/examples/PingResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.547786Z - v1.1.1 + v1.5.1 8f9fc2c5-923a-4a75-b70c-9e0c058bba45 AcknowledgedAndCompleted diff --git a/103221-1/examples/RemoveAllDestinationsRequest_example.xml b/103221-1/examples/RemoveAllDestinationsRequest_example.xml index 1a5c185..6b27365 100644 --- a/103221-1/examples/RemoveAllDestinationsRequest_example.xml +++ b/103221-1/examples/RemoveAllDestinationsRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.480627Z - v1.1.1 + v1.5.1 88611050-d8e2-4ada-96fc-626b5dbd9cdf diff --git a/103221-1/examples/RemoveAllDestinationsResponse_example.xml b/103221-1/examples/RemoveAllDestinationsResponse_example.xml index ab392cc..a057bc2 100644 --- a/103221-1/examples/RemoveAllDestinationsResponse_example.xml +++ b/103221-1/examples/RemoveAllDestinationsResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.481629Z - v1.1.1 + v1.5.1 88611050-d8e2-4ada-96fc-626b5dbd9cdf AcknowledgedAndCompleted diff --git a/103221-1/examples/RemoveDestinationRequest_example.xml b/103221-1/examples/RemoveDestinationRequest_example.xml index 66277d9..a5d3ce1 100644 --- a/103221-1/examples/RemoveDestinationRequest_example.xml +++ b/103221-1/examples/RemoveDestinationRequest_example.xml @@ -3,8 +3,8 @@ admfID neID - 2017-10-06T18:46:21.47363Z - v1.1.1 + 2017-10-06T18:46:21.473630Z + v1.5.1 8c229735-9acf-43ed-8d72-71602625b349 b0ce308c-aa17-42bd-a27b-287bcb5b3468 diff --git a/103221-1/examples/RemoveDestinationResponse_example.xml b/103221-1/examples/RemoveDestinationResponse_example.xml index b42246b..ec910e3 100644 --- a/103221-1/examples/RemoveDestinationResponse_example.xml +++ b/103221-1/examples/RemoveDestinationResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.474625Z - v1.1.1 + v1.5.1 8c229735-9acf-43ed-8d72-71602625b349 AcknowledgedAndCompleted diff --git a/103221-1/examples/ReportDestinationIssueRequest_example.xml b/103221-1/examples/ReportDestinationIssueRequest_example.xml index 52ba369..0f33e2b 100644 --- a/103221-1/examples/ReportDestinationIssueRequest_example.xml +++ b/103221-1/examples/ReportDestinationIssueRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.526329Z - v1.1.1 + v1.5.1 7e3ff959-55b0-47bd-a417-0d0383252150 b0ce308c-aa17-42bd-a27b-287bcb5b3468 NonTerminatingFault diff --git a/103221-1/examples/ReportDestinationIssueResponse_example.xml b/103221-1/examples/ReportDestinationIssueResponse_example.xml index f6f54a0..44f3381 100644 --- a/103221-1/examples/ReportDestinationIssueResponse_example.xml +++ b/103221-1/examples/ReportDestinationIssueResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.526329Z - v1.1.1 + v1.5.1 7e3ff959-55b0-47bd-a417-0d0383252150 AcknowledgedAndCompleted diff --git a/103221-1/examples/ReportNEIssueRequest_example.xml b/103221-1/examples/ReportNEIssueRequest_example.xml index 4f3a8a8..b06c969 100644 --- a/103221-1/examples/ReportNEIssueRequest_example.xml +++ b/103221-1/examples/ReportNEIssueRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.531784Z - v1.1.1 + v1.5.1 c4cbb148-d3ee-46a9-8e1e-7446d6f91e3b Warning Example NE issue diff --git a/103221-1/examples/ReportNEIssueResponse_example.xml b/103221-1/examples/ReportNEIssueResponse_example.xml index d234f89..ab2a6b8 100644 --- a/103221-1/examples/ReportNEIssueResponse_example.xml +++ b/103221-1/examples/ReportNEIssueResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.531784Z - v1.1.1 + v1.5.1 c4cbb148-d3ee-46a9-8e1e-7446d6f91e3b AcknowledgedAndCompleted diff --git a/103221-1/examples/ReportTaskIssueRequest_example.xml b/103221-1/examples/ReportTaskIssueRequest_example.xml index fe3fd82..ddbe803 100644 --- a/103221-1/examples/ReportTaskIssueRequest_example.xml +++ b/103221-1/examples/ReportTaskIssueRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.516321Z - v1.1.1 + v1.5.1 5f5ae0e4-58fe-4e4f-a949-3bb0d7b09295 29f28e1c-f230-486a-a860-f5a784ab9172 NonTerminatingFault diff --git a/103221-1/examples/ReportTaskIssueResponse_example.xml b/103221-1/examples/ReportTaskIssueResponse_example.xml index 263a904..eac2979 100644 --- a/103221-1/examples/ReportTaskIssueResponse_example.xml +++ b/103221-1/examples/ReportTaskIssueResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.517323Z - v1.1.1 + v1.5.1 5f5ae0e4-58fe-4e4f-a949-3bb0d7b09295 AcknowledgedAndCompleted diff --git a/103221-1/examples/validate_examples.py b/103221-1/examples/validate_examples.py new file mode 100644 index 0000000..0faa18a --- /dev/null +++ b/103221-1/examples/validate_examples.py @@ -0,0 +1,93 @@ +import glob +import sys + + +XS = 'http://www.w3.org/2001/XMLSchema' + + +def validate_example(example, schema): + + print('Validating example {}'.format(example)) + + xml = open(example) + doc = etree.parse(xml) + schema.assertValid(doc) + + print('Validated example {}'.format(example)) + + +def validate_examples(schema): + + examples = glob.glob('./examples/*.xml') + + if not examples: + sys.exit('ERROR: No examples found in ./examples/ directory') + + for example in examples: + validate_example(example, schema) + + +def load_schema(xsd): + + xsd_file = open(xsd) + + xsd_doc = etree.parse(xsd_file) + + # Set schemaLocation of TS 103 280 XSD + + common_xsd = glob.glob('./TS_103_280_*.xsd') + + if not common_xsd: + sys.exit('ERROR: Please copy a TS 103 280 XSD into this directory') + + if len(common_xsd) > 1: + sys.exit('ERROR: Too many TS 103 280 XSDs in current directory') + + imports = xsd_doc.xpath('//*/xs:import', namespaces={'xs': XS}) + + for xsd_import in imports: + xsd_import.attrib['schemaLocation'] = common_xsd[0] + + # Load TS 103 221-1 XSD as a schema + + return etree.XMLSchema(xsd_doc) + + +def validate_xsd(xsd): + + print('Validating XSD {}'.format(xsd)) + + schema = load_schema(xsd) + + print('Validated XSD {}'.format(xsd)) + print('') + + validate_examples(schema) + + print('') + print('Validated all examples for XSD {}'.format(xsd)) + print('') + + +def validate_xsds(): + + xsds = glob.glob('./TS_103_221_01_*.xsd') + + if not xsds: + sys.exit('ERROR: No TS 103 221-1 XSDs found in current directory') + + for xsd in xsds: + validate_xsd(xsd) + + +if __name__ == '__main__': + + if sys.version_info <= (3, 5): + sys.exit('ERROR: You need at least Python 3.5 to run this tool') + + try: + from lxml import etree + except ImportError: + sys.exit('ERROR: You need to install the Python lxml library') + + validate_xsds() diff --git a/103221-1/portal/output/ActivateTaskRequest_example.xml b/103221-1/portal/ActivateTaskRequest_example.xml similarity index 96% rename from 103221-1/portal/output/ActivateTaskRequest_example.xml rename to 103221-1/portal/ActivateTaskRequest_example.xml index 934993e..76f510b 100644 --- a/103221-1/portal/output/ActivateTaskRequest_example.xml +++ b/103221-1/portal/ActivateTaskRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.247432Z - v1.1.1 + v1.5.1 3741800e-971b-4aa9-85f4-466d2b1adc7f 29f28e1c-f230-486a-a860-f5a784ab9172 diff --git a/103221-1/portal/output/ActivateTaskResponse_example.xml b/103221-1/portal/ActivateTaskResponse_example.xml similarity index 93% rename from 103221-1/portal/output/ActivateTaskResponse_example.xml rename to 103221-1/portal/ActivateTaskResponse_example.xml index 9d4aa09..9a04c2a 100644 --- a/103221-1/portal/output/ActivateTaskResponse_example.xml +++ b/103221-1/portal/ActivateTaskResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.401571Z - v1.1.1 + v1.5.1 3741800e-971b-4aa9-85f4-466d2b1adc7f AcknowledgedAndCompleted diff --git a/103221-1/portal/output/CreateDestinationRequest_example.xml b/103221-1/portal/CreateDestinationRequest_example.xml similarity index 96% rename from 103221-1/portal/output/CreateDestinationRequest_example.xml rename to 103221-1/portal/CreateDestinationRequest_example.xml index 6579d01..89b1a37 100644 --- a/103221-1/portal/output/CreateDestinationRequest_example.xml +++ b/103221-1/portal/CreateDestinationRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.446605Z - v1.1.1 + v1.5.1 8e8ca539-e4dd-41f3-b1cb-acc2a5edece0 b0ce308c-aa17-42bd-a27b-287bcb5b3468 diff --git a/103221-1/portal/output/CreateDestinationResponse_example.xml b/103221-1/portal/CreateDestinationResponse_example.xml similarity index 93% rename from 103221-1/portal/output/CreateDestinationResponse_example.xml rename to 103221-1/portal/CreateDestinationResponse_example.xml index 0000489..8eae1de 100644 --- a/103221-1/portal/output/CreateDestinationResponse_example.xml +++ b/103221-1/portal/CreateDestinationResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.446605Z - v1.1.1 + v1.5.1 8e8ca539-e4dd-41f3-b1cb-acc2a5edece0 AcknowledgedAndCompleted diff --git a/103221-1/portal/output/DeactivateTaskRequest_example.xml b/103221-1/portal/DeactivateTaskRequest_example.xml similarity index 93% rename from 103221-1/portal/output/DeactivateTaskRequest_example.xml rename to 103221-1/portal/DeactivateTaskRequest_example.xml index c9e759f..10797cf 100644 --- a/103221-1/portal/output/DeactivateTaskRequest_example.xml +++ b/103221-1/portal/DeactivateTaskRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.429594Z - v1.1.1 + v1.5.1 3da0df97-7bd5-4413-936d-74bebd7512fe 29f28e1c-f230-486a-a860-f5a784ab9172 diff --git a/103221-1/portal/output/DeactivateTaskResponse_example.xml b/103221-1/portal/DeactivateTaskResponse_example.xml similarity index 93% rename from 103221-1/portal/output/DeactivateTaskResponse_example.xml rename to 103221-1/portal/DeactivateTaskResponse_example.xml index 5a377d1..c34ec56 100644 --- a/103221-1/portal/output/DeactivateTaskResponse_example.xml +++ b/103221-1/portal/DeactivateTaskResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.430594Z - v1.1.1 + v1.5.1 3da0df97-7bd5-4413-936d-74bebd7512fe AcknowledgedAndCompleted diff --git a/103221-1/portal/output/GetAllDetailsRequest_example.xml b/103221-1/portal/GetAllDetailsRequest_example.xml similarity index 93% rename from 103221-1/portal/output/GetAllDetailsRequest_example.xml rename to 103221-1/portal/GetAllDetailsRequest_example.xml index 99e585a..cdbb8ee 100644 --- a/103221-1/portal/output/GetAllDetailsRequest_example.xml +++ b/103221-1/portal/GetAllDetailsRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.496243Z - v1.1.1 + v1.5.1 bfd0c982-b7d6-4a8e-80a0-89dab964aafd diff --git a/103221-1/portal/output/GetAllDetailsResponse_example.xml b/103221-1/portal/GetAllDetailsResponse_example.xml similarity index 98% rename from 103221-1/portal/output/GetAllDetailsResponse_example.xml rename to 103221-1/portal/GetAllDetailsResponse_example.xml index 93663ce..287296e 100644 --- a/103221-1/portal/output/GetAllDetailsResponse_example.xml +++ b/103221-1/portal/GetAllDetailsResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.496743Z - v1.1.1 + v1.5.1 bfd0c982-b7d6-4a8e-80a0-89dab964aafd OK diff --git a/103221-1/portal/output/GetDestinationDetailsRequest_example.xml b/103221-1/portal/GetDestinationDetailsRequest_example.xml similarity index 93% rename from 103221-1/portal/output/GetDestinationDetailsRequest_example.xml rename to 103221-1/portal/GetDestinationDetailsRequest_example.xml index cc183c3..bc1ffa7 100644 --- a/103221-1/portal/output/GetDestinationDetailsRequest_example.xml +++ b/103221-1/portal/GetDestinationDetailsRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.462616Z - v1.1.1 + v1.5.1 7de5709c-8269-417f-a123-7087d3971f8c b0ce308c-aa17-42bd-a27b-287bcb5b3468 diff --git a/103221-1/portal/output/GetDestinationDetailsResponse_example.xml b/103221-1/portal/GetDestinationDetailsResponse_example.xml similarity index 97% rename from 103221-1/portal/output/GetDestinationDetailsResponse_example.xml rename to 103221-1/portal/GetDestinationDetailsResponse_example.xml index 080274d..bbd6b9c 100644 --- a/103221-1/portal/output/GetDestinationDetailsResponse_example.xml +++ b/103221-1/portal/GetDestinationDetailsResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.462616Z - v1.1.1 + v1.5.1 7de5709c-8269-417f-a123-7087d3971f8c diff --git a/103221-1/portal/output/GetNEStatusRequest_example.xml b/103221-1/portal/GetNEStatusRequest_example.xml similarity index 92% rename from 103221-1/portal/output/GetNEStatusRequest_example.xml rename to 103221-1/portal/GetNEStatusRequest_example.xml index 556e7f0..29c15b6 100644 --- a/103221-1/portal/output/GetNEStatusRequest_example.xml +++ b/103221-1/portal/GetNEStatusRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.487158Z - v1.1.1 + v1.5.1 93d571cb-3793-4385-8b59-2c14097ed743 diff --git a/103221-1/portal/output/GetNEStatusResponse_example.xml b/103221-1/portal/GetNEStatusResponse_example.xml similarity index 94% rename from 103221-1/portal/output/GetNEStatusResponse_example.xml rename to 103221-1/portal/GetNEStatusResponse_example.xml index 8dc6247..ba19ff3 100644 --- a/103221-1/portal/output/GetNEStatusResponse_example.xml +++ b/103221-1/portal/GetNEStatusResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.488659Z - v1.1.1 + v1.5.1 93d571cb-3793-4385-8b59-2c14097ed743 OK diff --git a/103221-1/portal/output/GetTaskDetailsRequest_example.xml b/103221-1/portal/GetTaskDetailsRequest_example.xml similarity index 93% rename from 103221-1/portal/output/GetTaskDetailsRequest_example.xml rename to 103221-1/portal/GetTaskDetailsRequest_example.xml index 0185b1a..491c90e 100644 --- a/103221-1/portal/output/GetTaskDetailsRequest_example.xml +++ b/103221-1/portal/GetTaskDetailsRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.418584Z - v1.1.1 + v1.5.1 609dcabd-5ab1-4c95-9681-a24681f105ac 29f28e1c-f230-486a-a860-f5a784ab9172 diff --git a/103221-1/portal/output/GetTaskDetailsResponse_example.xml b/103221-1/portal/GetTaskDetailsResponse_example.xml similarity index 96% rename from 103221-1/portal/output/GetTaskDetailsResponse_example.xml rename to 103221-1/portal/GetTaskDetailsResponse_example.xml index b80bd03..5115b76 100644 --- a/103221-1/portal/output/GetTaskDetailsResponse_example.xml +++ b/103221-1/portal/GetTaskDetailsResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.420587Z - v1.1.1 + v1.5.1 609dcabd-5ab1-4c95-9681-a24681f105ac diff --git a/103221-1/portal/output/KeepaliveRequest_example.xml b/103221-1/portal/KeepaliveRequest_example.xml similarity index 92% rename from 103221-1/portal/output/KeepaliveRequest_example.xml rename to 103221-1/portal/KeepaliveRequest_example.xml index 1bdbdc3..330e8db 100644 --- a/103221-1/portal/output/KeepaliveRequest_example.xml +++ b/103221-1/portal/KeepaliveRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.541784Z - v1.1.1 + v1.5.1 6420aa0f-e5e6-4a32-9dff-15b836589257 diff --git a/103221-1/portal/output/KeepaliveResponse_example.xml b/103221-1/portal/KeepaliveResponse_example.xml similarity index 93% rename from 103221-1/portal/output/KeepaliveResponse_example.xml rename to 103221-1/portal/KeepaliveResponse_example.xml index 5ed4d81..923bbaa 100644 --- a/103221-1/portal/output/KeepaliveResponse_example.xml +++ b/103221-1/portal/KeepaliveResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.542783Z - v1.1.1 + v1.5.1 6420aa0f-e5e6-4a32-9dff-15b836589257 AcknowledgedAndCompleted diff --git a/103221-1/portal/output/ListAllDetailsRequest_example.xml b/103221-1/portal/ListAllDetailsRequest_example.xml similarity index 78% rename from 103221-1/portal/output/ListAllDetailsRequest_example.xml rename to 103221-1/portal/ListAllDetailsRequest_example.xml index 229a918..b3f70b3 100644 --- a/103221-1/portal/output/ListAllDetailsRequest_example.xml +++ b/103221-1/portal/ListAllDetailsRequest_example.xml @@ -3,8 +3,8 @@ admfID neID - 2017-10-06T18:46:21.50833Z - v1.1.1 + 2017-10-06T18:46:21.508330Z + v1.5.1 09529160-2e44-49c6-bf54-204ca5edcfab diff --git a/103221-1/portal/output/ListAllDetailsResponse_example.xml b/103221-1/portal/ListAllDetailsResponse_example.xml similarity index 84% rename from 103221-1/portal/output/ListAllDetailsResponse_example.xml rename to 103221-1/portal/ListAllDetailsResponse_example.xml index a1173f8..d762e08 100644 --- a/103221-1/portal/output/ListAllDetailsResponse_example.xml +++ b/103221-1/portal/ListAllDetailsResponse_example.xml @@ -3,8 +3,8 @@ admfID neID - 2017-10-06T18:46:21.50833Z - v1.1.1 + 2017-10-06T18:46:21.508330Z + v1.5.1 09529160-2e44-49c6-bf54-204ca5edcfab 29f28e1c-f230-486a-a860-f5a784ab9172 diff --git a/103221-1/portal/output/ModifyTaskRequest_example.xml b/103221-1/portal/ModifyTaskRequest_example.xml similarity index 96% rename from 103221-1/portal/output/ModifyTaskRequest_example.xml rename to 103221-1/portal/ModifyTaskRequest_example.xml index 1db578f..bb48bac 100644 --- a/103221-1/portal/output/ModifyTaskRequest_example.xml +++ b/103221-1/portal/ModifyTaskRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.411587Z - v1.1.1 + v1.5.1 fcfc97de-1c77-413d-9925-d1630acbf763 29f28e1c-f230-486a-a860-f5a784ab9172 diff --git a/103221-1/portal/output/ModifyTaskResponse_example.xml b/103221-1/portal/ModifyTaskResponse_example.xml similarity index 93% rename from 103221-1/portal/output/ModifyTaskResponse_example.xml rename to 103221-1/portal/ModifyTaskResponse_example.xml index 105124b..adfa3b5 100644 --- a/103221-1/portal/output/ModifyTaskResponse_example.xml +++ b/103221-1/portal/ModifyTaskResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.411587Z - v1.1.1 + v1.5.1 fcfc97de-1c77-413d-9925-d1630acbf763 AcknowledgedAndCompleted diff --git a/103221-1/portal/output/PingRequest_example.xml b/103221-1/portal/PingRequest_example.xml similarity index 92% rename from 103221-1/portal/output/PingRequest_example.xml rename to 103221-1/portal/PingRequest_example.xml index 6697d38..d9687b6 100644 --- a/103221-1/portal/output/PingRequest_example.xml +++ b/103221-1/portal/PingRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.547786Z - v1.1.1 + v1.5.1 8f9fc2c5-923a-4a75-b70c-9e0c058bba45 diff --git a/103221-1/portal/output/PingResponse_example.xml b/103221-1/portal/PingResponse_example.xml similarity index 93% rename from 103221-1/portal/output/PingResponse_example.xml rename to 103221-1/portal/PingResponse_example.xml index fd927da..9e4dadb 100644 --- a/103221-1/portal/output/PingResponse_example.xml +++ b/103221-1/portal/PingResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.547786Z - v1.1.1 + v1.5.1 8f9fc2c5-923a-4a75-b70c-9e0c058bba45 AcknowledgedAndCompleted diff --git a/103221-1/portal/output/RemoveAllDestinationsRequest_example.xml b/103221-1/portal/RemoveAllDestinationsRequest_example.xml similarity index 93% rename from 103221-1/portal/output/RemoveAllDestinationsRequest_example.xml rename to 103221-1/portal/RemoveAllDestinationsRequest_example.xml index 1a5c185..6b27365 100644 --- a/103221-1/portal/output/RemoveAllDestinationsRequest_example.xml +++ b/103221-1/portal/RemoveAllDestinationsRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.480627Z - v1.1.1 + v1.5.1 88611050-d8e2-4ada-96fc-626b5dbd9cdf diff --git a/103221-1/portal/output/RemoveAllDestinationsResponse_example.xml b/103221-1/portal/RemoveAllDestinationsResponse_example.xml similarity index 93% rename from 103221-1/portal/output/RemoveAllDestinationsResponse_example.xml rename to 103221-1/portal/RemoveAllDestinationsResponse_example.xml index ab392cc..a057bc2 100644 --- a/103221-1/portal/output/RemoveAllDestinationsResponse_example.xml +++ b/103221-1/portal/RemoveAllDestinationsResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.481629Z - v1.1.1 + v1.5.1 88611050-d8e2-4ada-96fc-626b5dbd9cdf AcknowledgedAndCompleted diff --git a/103221-1/portal/output/RemoveDestinationRequest_example.xml b/103221-1/portal/RemoveDestinationRequest_example.xml similarity index 81% rename from 103221-1/portal/output/RemoveDestinationRequest_example.xml rename to 103221-1/portal/RemoveDestinationRequest_example.xml index 66277d9..a5d3ce1 100644 --- a/103221-1/portal/output/RemoveDestinationRequest_example.xml +++ b/103221-1/portal/RemoveDestinationRequest_example.xml @@ -3,8 +3,8 @@ admfID neID - 2017-10-06T18:46:21.47363Z - v1.1.1 + 2017-10-06T18:46:21.473630Z + v1.5.1 8c229735-9acf-43ed-8d72-71602625b349 b0ce308c-aa17-42bd-a27b-287bcb5b3468 diff --git a/103221-1/portal/output/RemoveDestinationResponse_example.xml b/103221-1/portal/RemoveDestinationResponse_example.xml similarity index 93% rename from 103221-1/portal/output/RemoveDestinationResponse_example.xml rename to 103221-1/portal/RemoveDestinationResponse_example.xml index b42246b..ec910e3 100644 --- a/103221-1/portal/output/RemoveDestinationResponse_example.xml +++ b/103221-1/portal/RemoveDestinationResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.474625Z - v1.1.1 + v1.5.1 8c229735-9acf-43ed-8d72-71602625b349 AcknowledgedAndCompleted diff --git a/103221-1/portal/output/ReportDestinationIssueRequest_example.xml b/103221-1/portal/ReportDestinationIssueRequest_example.xml similarity index 95% rename from 103221-1/portal/output/ReportDestinationIssueRequest_example.xml rename to 103221-1/portal/ReportDestinationIssueRequest_example.xml index 52ba369..0f33e2b 100644 --- a/103221-1/portal/output/ReportDestinationIssueRequest_example.xml +++ b/103221-1/portal/ReportDestinationIssueRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.526329Z - v1.1.1 + v1.5.1 7e3ff959-55b0-47bd-a417-0d0383252150 b0ce308c-aa17-42bd-a27b-287bcb5b3468 NonTerminatingFault diff --git a/103221-1/portal/output/ReportDestinationIssueResponse_example.xml b/103221-1/portal/ReportDestinationIssueResponse_example.xml similarity index 93% rename from 103221-1/portal/output/ReportDestinationIssueResponse_example.xml rename to 103221-1/portal/ReportDestinationIssueResponse_example.xml index f6f54a0..44f3381 100644 --- a/103221-1/portal/output/ReportDestinationIssueResponse_example.xml +++ b/103221-1/portal/ReportDestinationIssueResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.526329Z - v1.1.1 + v1.5.1 7e3ff959-55b0-47bd-a417-0d0383252150 AcknowledgedAndCompleted diff --git a/103221-1/portal/output/ReportNEIssueRequest_example.xml b/103221-1/portal/ReportNEIssueRequest_example.xml similarity index 94% rename from 103221-1/portal/output/ReportNEIssueRequest_example.xml rename to 103221-1/portal/ReportNEIssueRequest_example.xml index 4f3a8a8..b06c969 100644 --- a/103221-1/portal/output/ReportNEIssueRequest_example.xml +++ b/103221-1/portal/ReportNEIssueRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.531784Z - v1.1.1 + v1.5.1 c4cbb148-d3ee-46a9-8e1e-7446d6f91e3b Warning Example NE issue diff --git a/103221-1/portal/output/ReportNEIssueResponse_example.xml b/103221-1/portal/ReportNEIssueResponse_example.xml similarity index 93% rename from 103221-1/portal/output/ReportNEIssueResponse_example.xml rename to 103221-1/portal/ReportNEIssueResponse_example.xml index d234f89..ab2a6b8 100644 --- a/103221-1/portal/output/ReportNEIssueResponse_example.xml +++ b/103221-1/portal/ReportNEIssueResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.531784Z - v1.1.1 + v1.5.1 c4cbb148-d3ee-46a9-8e1e-7446d6f91e3b AcknowledgedAndCompleted diff --git a/103221-1/portal/output/ReportTaskIssueRequest_example.xml b/103221-1/portal/ReportTaskIssueRequest_example.xml similarity index 94% rename from 103221-1/portal/output/ReportTaskIssueRequest_example.xml rename to 103221-1/portal/ReportTaskIssueRequest_example.xml index fe3fd82..ddbe803 100644 --- a/103221-1/portal/output/ReportTaskIssueRequest_example.xml +++ b/103221-1/portal/ReportTaskIssueRequest_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.516321Z - v1.1.1 + v1.5.1 5f5ae0e4-58fe-4e4f-a949-3bb0d7b09295 29f28e1c-f230-486a-a860-f5a784ab9172 NonTerminatingFault diff --git a/103221-1/portal/output/ReportTaskIssueResponse_example.xml b/103221-1/portal/ReportTaskIssueResponse_example.xml similarity index 93% rename from 103221-1/portal/output/ReportTaskIssueResponse_example.xml rename to 103221-1/portal/ReportTaskIssueResponse_example.xml index 263a904..eac2979 100644 --- a/103221-1/portal/output/ReportTaskIssueResponse_example.xml +++ b/103221-1/portal/ReportTaskIssueResponse_example.xml @@ -4,7 +4,7 @@ admfID neID 2017-10-06T18:46:21.517323Z - v1.1.1 + v1.5.1 5f5ae0e4-58fe-4e4f-a949-3bb0d7b09295 AcknowledgedAndCompleted diff --git a/103221-1/portal/TS_103_221_01_v010401.xsd b/103221-1/portal/TS_103_221_01_v010401.xsd deleted file mode 100644 index ef56282..0000000 --- a/103221-1/portal/TS_103_221_01_v010401.xsd +++ /dev/null @@ -1,861 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/103221-1/portal/TS_103_221_01_v010501.xsd b/103221-1/portal/TS_103_221_01_v010501.xsd new file mode 100644 index 0000000..cb1ebf0 --- /dev/null +++ b/103221-1/portal/TS_103_221_01_v010501.xsd @@ -0,0 +1,789 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/103221-1/portal/validate_examples.py b/103221-1/portal/validate_examples.py new file mode 100644 index 0000000..0faa18a --- /dev/null +++ b/103221-1/portal/validate_examples.py @@ -0,0 +1,93 @@ +import glob +import sys + + +XS = 'http://www.w3.org/2001/XMLSchema' + + +def validate_example(example, schema): + + print('Validating example {}'.format(example)) + + xml = open(example) + doc = etree.parse(xml) + schema.assertValid(doc) + + print('Validated example {}'.format(example)) + + +def validate_examples(schema): + + examples = glob.glob('./examples/*.xml') + + if not examples: + sys.exit('ERROR: No examples found in ./examples/ directory') + + for example in examples: + validate_example(example, schema) + + +def load_schema(xsd): + + xsd_file = open(xsd) + + xsd_doc = etree.parse(xsd_file) + + # Set schemaLocation of TS 103 280 XSD + + common_xsd = glob.glob('./TS_103_280_*.xsd') + + if not common_xsd: + sys.exit('ERROR: Please copy a TS 103 280 XSD into this directory') + + if len(common_xsd) > 1: + sys.exit('ERROR: Too many TS 103 280 XSDs in current directory') + + imports = xsd_doc.xpath('//*/xs:import', namespaces={'xs': XS}) + + for xsd_import in imports: + xsd_import.attrib['schemaLocation'] = common_xsd[0] + + # Load TS 103 221-1 XSD as a schema + + return etree.XMLSchema(xsd_doc) + + +def validate_xsd(xsd): + + print('Validating XSD {}'.format(xsd)) + + schema = load_schema(xsd) + + print('Validated XSD {}'.format(xsd)) + print('') + + validate_examples(schema) + + print('') + print('Validated all examples for XSD {}'.format(xsd)) + print('') + + +def validate_xsds(): + + xsds = glob.glob('./TS_103_221_01_*.xsd') + + if not xsds: + sys.exit('ERROR: No TS 103 221-1 XSDs found in current directory') + + for xsd in xsds: + validate_xsd(xsd) + + +if __name__ == '__main__': + + if sys.version_info <= (3, 5): + sys.exit('ERROR: You need at least Python 3.5 to run this tool') + + try: + from lxml import etree + except ImportError: + sys.exit('ERROR: You need to install the Python lxml library') + + validate_xsds() -- GitLab