diff --git a/102657/RDMessage.asn b/102657/RDMessage.asn index ea717ef2e6ce2597ff23706154f64f6eb0996d64..f3d98ebaea2cc85514b8e80bbd2693710513d61a 100644 --- a/102657/RDMessage.asn +++ b/102657/RDMessage.asn @@ -1,4 +1,4 @@ -RDMessage {itu-t(0) identified-organization(4) etsi(0) securityDomain(2) retainedData(3) rdHeader(0) version25(25)} +RDMessage {itu-t(0) identified-organization(4) etsi(0) securityDomain(2) retainedData(3) rdHeader(0) version26(26)} DEFINITIONS IMPLICIT TAGS ::= @@ -12,7 +12,7 @@ BEGIN retainedDataDomainId OBJECT IDENTIFIER ::= {itu-t(0) identified-organization(4) etsi(0) securityDomain(2) retainedData(3)} -- rdHeader -rdHeaderId OBJECT IDENTIFIER ::= {retainedDataDomainId rdHeader(0) version25(25)} +rdHeaderId OBJECT IDENTIFIER ::= {retainedDataDomainId rdHeader(0) version26(26)} -- ====================================== -- Top level definitions for RDHI wrapper @@ -837,9 +837,11 @@ TelephonyServiceUsage ::= SEQUENCE nationalTelephonyServiceUsage [10] NationalTelephonyServiceUsage OPTIONAL, -- To be defined on a national basis -- Only to be used in case the present document cannot fulfil the national requirements - operatorSpecificCallDetails [11] UTF8String OPTIONAL + operatorSpecificCallDetails [11] UTF8String OPTIONAL, -- CSP specific value which indicates the nature of a call -- (e.g. "CallIndicator: GPR, CallActionCode: 2") + trunkGroupIDs [12] TrunkGroupIDs OPTIONAL, + interOperatorIDs [13] InterOperatorIDs OPTIONAL } NationalTelephonyServiceUsage ::= SEQUENCE @@ -1157,6 +1159,26 @@ TelephonyPartyRole ::= ENUMERATED mmsRecipientTrn(17) } +TrunkGroupIDs ::= SEQUENCE +{ + incomingTrunkGroupID [1] UTF8String OPTIONAL, + -- identifies the incoming PSTN leg. Format as defined by the CSP. + outgoingTrunkGroupID [2] UTF8String OPTIONAL, + -- identifies the outgoing PSTN leg. Format as defined by the CSP. + ... +} + +InterOperatorIDs ::= SEQUENCE +{ + originatingInterOperatorID [1] UTF8String OPTIONAL, + -- orig-ioi formated as defined in IETF RFC 7315 [55]. + terminatingInterOperatorID [2] UTF8String OPTIONAL, + -- term-ioi, formated as defined in IETF RFC 7315 [55]. + transitInterOperatorIDList [3] UTF8String OPTIONAL, + -- transit-ioi-list, formated as defined in IETF RFC 7315 [55]. + ... +} + -- ======================= -- Device Data definitions -- ======================= @@ -1678,7 +1700,9 @@ MsgTransmission ::= SEQUENCE ..., messageID [10] MessageID OPTIONAL, sourceServerName [11] UTF8String OPTIONAL, - destinationServerName [12] UTF8String OPTIONAL + destinationServerName [12] UTF8String OPTIONAL, + clientPort [13] PortNumber OPTIONAL, + serverPort [14] PortNumber OPTIONAL } MsgStoreOperation ::= SEQUENCE @@ -1700,7 +1724,11 @@ MsgStoreOperation ::= SEQUENCE addMsg(5), -- E.g. the APPEND command in IMAP ..., - editMsg(6) + editMsg(6), + sendMsg(7), + -- Only applicable to webmail solutions + forwardMsg(8) + -- Only applicable to webmail solutions } OPTIONAL, senderAddress [5] MsgAddress OPTIONAL, -- For Internet email, use the From address in the mail headers @@ -1716,7 +1744,9 @@ MsgStoreOperation ::= SEQUENCE clientID [8] IPAddress OPTIONAL, serverID [9] IPAddress OPTIONAL, ..., - messageID [10] MessageID OPTIONAL + messageID [10] MessageID OPTIONAL, + clientPort [11] PortNumber OPTIONAL, + serverPort [12] PortNumber OPTIONAL } MessageID ::= UTF8String @@ -1928,8 +1958,10 @@ MultimediaServiceUsage ::= SEQUENCE relayIP [20] IPAddress OPTIONAL, vmLength [21] INTEGER OPTIONAL, -- number of seconds reason [22] UTF8String OPTIONAL, - smsInformation [23] SmsInformation OPTIONAL, - mmsInformation [24] MmsInformation OPTIONAL + smsInformation [23] SmsInformation OPTIONAL, + mmsInformation [24] MmsInformation OPTIONAL, + trunkGroupIDs [25] TrunkGroupIDs OPTIONAL, + interOperatorIDs [26] InterOperatorIDs OPTIONAL } MultimediaPartyInformation ::= SEQUENCE @@ -2403,9 +2435,13 @@ WifiInformation ::= SEQUENCE accessPointAdditionalDescriptions [8] SEQUENCE OF UTF8String OPTIONAL, -- Informal description of location, category or type of access point, -- or a name of the network to which the access point belongs. - accessPointAdditionalProviders [9] SEQUENCE OF UTF8String OPTIONAL + accessPointAdditionalProviders [9] SEQUENCE OF UTF8String OPTIONAL, -- For WiFi, there may be other parties involved in hosting or owning the -- Access Points, e.g. access point provider or partner providers + cSPDefinedName [10] UTF8String OPTIONAL + -- CSP-defined label or name assigned to the access point. + -- The access points of a CSP within a venue or geographical location + -- typically share this name. } AuthenticationType ::= ENUMERATED @@ -2787,6 +2823,17 @@ IPAddress ::= CHOICE ... } +PortNumber ::= CHOICE +{ + tCPPort [0] TCPPort, + uDPPort [1] UDPPort, + ... +} + +TCPPort ::= INTEGER (1..65535) + +UDPPort ::= INTEGER (0..65535) + NAAssignedAddress ::= SEQUENCE { addressSetOrRangeOrMask [1] IPAddressSetOrRangeOrMask OPTIONAL, diff --git a/102657/RDMessage.xsd b/102657/RDMessage.xsd index e74c0c29138a10a164309b81a1aafd1ad5ae741e..39e55512ac79b1e3e6ae8250d6f66738ab25ca8a 100644 --- a/102657/RDMessage.xsd +++ b/102657/RDMessage.xsd @@ -1,8 +1,8 @@ - + - XSD translated from ASN.1 derived from outcome of TS 102 657 v1.27.1 + XSD translated from ASN.1 derived from outcome of TS 102 657 v1.28.1 @@ -223,6 +223,21 @@ + + + + + + + + + + + + + + + @@ -349,6 +364,24 @@ + + + + + + + + + + + + + + + + + + @@ -1089,6 +1122,8 @@ + + @@ -1755,6 +1790,8 @@ + + @@ -1773,6 +1810,8 @@ + + @@ -1796,6 +1835,8 @@ + + @@ -2157,6 +2198,7 @@ + @@ -2868,6 +2910,8 @@ + + diff --git a/103120/examples/FooServiceSchema.xsd b/103120/examples/FooServiceSchema.xsd new file mode 100644 index 0000000000000000000000000000000000000000..56573942c2bd501476e3876d6039bbdb905e97cd --- /dev/null +++ b/103120/examples/FooServiceSchema.xsd @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/103120/examples/example.key b/103120/examples/example.key new file mode 100644 index 0000000000000000000000000000000000000000..b5959e7f2fa859401c0543f1038599b31600b37c --- /dev/null +++ b/103120/examples/example.key @@ -0,0 +1,28 @@ +-----BEGIN PRIVATE KEY----- +MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDc9UQSsRmchhOC +ixyrHvmjmDFeIApVlfTfVV5RJL/280wDlAYymhAcEcvMOyvBCHq4c3M8hBxt9zKD +mV+NbcDqXyblt8rVpjzbggn3Ch2dMJ/kLNO+O+WJSl3Jpyx3b4r8IVoUDXai2sjX +8jLNYI4TC673X3xX1VikzcGwFjt2zbL+WLHEnvUVeG/8FJfRl2ttWlSFMA2252ak +OwtAPF4AKJBW5pXSeILA+K32bf+Y5JMODWwI+njylAafTFV1eM/dTOSEKYCHVCN0 +cxiO6KCC2GSzLeQEGWmh/C+uyhSlLW/6EyEHJcLdi6eTPunYJGanai6PLLr5zNWX +lvcj/YbZAgMBAAECggEAbm1BPRo3U4uKWpaNmFPdrU3VdlYK9CUCgU8X2PPF4HRN +TAiBZG6smGqocIQt5MYJFv/T2q2ny6lcHHrdT0BHxpoRRYMqIsZ26bk+o7DxheqU +LiPdGtiyaX+6CZq71WDwk/tTGmx0GwW+lHXdv9h+iLQxGD4nVXoxWAPgxdEGnONY +gSYbOhXz+MEFZaW8HnVPfoA+RR9Hg59gnmBCZlhbahqf3WnjAwgS0nsbSUN57wVi +FcWHWLyzv94bQHcTgalXqVakQv5+ymJKF4ImiYUP2rLPQ8ubqwmdQ6xI8Gp3AGCr +FY5koP3JT2mMY+aZJEEGWE3U4JRDyrkOpI34No8iEQKBgQD6niFOopCjE2k7eIFr +c+s5Khp3ITmcgV4tycxngXOQw8GnPEzzZUW7xodTiMPLYz/8lFbJvCAWCeQpmVWX +U8OX9anzY0U0ILbolXpdpGdZkBHbKWtAVBNOZ/lY0SAmt6/ZWf/EcqpMm/fH+iph +aqafwQuX4qhy9HlwY2qwyj5y5QKBgQDhtBH9/9Hy0X2HI+uzNRaU0y1BqvuqjHOf +1v57DM5uYF0MAp1SAfAJcx+jUXdf28Nr4GlxBIvQumq6rsvfKhqBINsKgJf/4+PA +Lv+fofeUEEqrGHuecB4NbdHP5XIIiuyyuOtRhGq/sclOQSZAa1kxajGvDI1AVHL4 +LCwcy9HA5QKBgQDIq+2HhWvC6DwOvoMCgyMJ9siSMyxqQLwkdb0R8/mRJO3e9s22 +5pRbsq+RF6WPKb2GhVCo39XhT7I+DOUX8p5fAvo+RHKZNsi+m1ILwSRv9ogVsKiM +LcX3thFWKL1RwysvIn1F03rBNPHGUm206yzYJj8eMwMmaNMERtabEJXIcQKBgHct +Kvbwlr5daafrCrDkzlilLVdoXlzOrtrung8BUxsrHNaTptg/l6yVslX9VUgzdXvH +0kVP/jenx2VtmM7sn3Qhkid4gUon3gGDj4yN7HmtJJA1bEjbsLKsk0XwRIdIO/We ++PphLjCsQrxkYDtRs5YJGdTxjsAyF0b9pAlMgiQVAoGBAK/NGV5+IPDHEmz0CNJN +ApaA2jG8KrsIPWNpgOC3CxPMT3kWYK601y0CLw8ZpUnVTMfPkKMSOVsqaOpHV6eP +Oecq3bP1CiNunro+j3EOIDIST2ttrlNuKIBaiz63ZMNDbs/DyaGL8Zf688OJCXsb +yCWSJh8NbrNblNfI0jaMoTGw +-----END PRIVATE KEY----- diff --git a/103120/examples/example.pem b/103120/examples/example.pem new file mode 100644 index 0000000000000000000000000000000000000000..2aa1eaca4fc4ca1cb9d727356fefedb84b9dfade --- /dev/null +++ b/103120/examples/example.pem @@ -0,0 +1,19 @@ +-----BEGIN CERTIFICATE----- +MIIC/zCCAeegAwIBAgIUUOGdj0hEfnnW9gqIOCTJ9EUocnMwDQYJKoZIhvcNAQEL +BQAwDzENMAsGA1UEAwwEdGVzdDAeFw0yMTA2MjUwNzIyMDlaFw0yNDAzMjEwNzIy +MDlaMA8xDTALBgNVBAMMBHRlc3QwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK +AoIBAQDc9UQSsRmchhOCixyrHvmjmDFeIApVlfTfVV5RJL/280wDlAYymhAcEcvM +OyvBCHq4c3M8hBxt9zKDmV+NbcDqXyblt8rVpjzbggn3Ch2dMJ/kLNO+O+WJSl3J +pyx3b4r8IVoUDXai2sjX8jLNYI4TC673X3xX1VikzcGwFjt2zbL+WLHEnvUVeG/8 +FJfRl2ttWlSFMA2252akOwtAPF4AKJBW5pXSeILA+K32bf+Y5JMODWwI+njylAaf +TFV1eM/dTOSEKYCHVCN0cxiO6KCC2GSzLeQEGWmh/C+uyhSlLW/6EyEHJcLdi6eT +PunYJGanai6PLLr5zNWXlvcj/YbZAgMBAAGjUzBRMB0GA1UdDgQWBBSFT3NqexF1 +LcYkjqUr9MMTIFp/ATAfBgNVHSMEGDAWgBSFT3NqexF1LcYkjqUr9MMTIFp/ATAP +BgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQCzwydpNgq680qWmd0D +4ya9fHUopeX7LBSYOU7NU3CagjXnUMwaCmSpokkH0Wvn1UtXDUF+slA9bEeXkfZm +70YW8msIEt1mljDi4CBI+MvaJ40OJkXwkQUE3dhj9LJl5Nv0UBEyv7k/a/6+eO9K +OQoHIVqXwrWs9JHTW6T4diN1w7xcgvSXhlcOySHjfNzFzferqx8i0/Wz6jD/7YSC +FOEaUrXbeFS3asRoZRLW6uXgfDJ7qfCmUZZ853OF3MN63OwWjPGxtFmeZAqMS/K0 +FKgwMCrmZlVq6Fx87E+sc3eppXIceCau/+CHG91mRvMSha6jQD7jLMT9xjND5Dob +/scV +-----END CERTIFICATE----- diff --git a/103120/examples/mutliple-auth-example-request.xml b/103120/examples/mutliple-auth-example-request.xml index 5e5f226800ba796c704d3f2075b837b783dc7cb1..8fd893c24d5aec216cb2197368892483015204f0 100644 --- a/103120/examples/mutliple-auth-example-request.xml +++ b/103120/examples/mutliple-auth-example-request.xml @@ -12,7 +12,7 @@ d442c58c-d5e1-4fd9-90ec-9c228ad947f1 2020-09-22T08:06:17.025833Z - V1.8.1 + V1.10.1 XX v1.1.1 diff --git a/103120/examples/request1.xml b/103120/examples/request1.xml index e8b6a5f8b113cfebe8e5f05f6aee82752fbc0184..a5e40d645c53e549c6002e105a5352b44dbbec47 100644 --- a/103120/examples/request1.xml +++ b/103120/examples/request1.xml @@ -12,7 +12,7 @@ c02358b2-76cf-4ba4-a8eb-f6436ccaea2e 2015-09-01T12:00:00.000000Z - V1.8.1 + V1.10.1 XX v1.0 @@ -53,7 +53,7 @@ ETSI InternationalE164 - +447700900000 + 442079460223 diff --git a/103120/examples/request2.xml b/103120/examples/request2.xml index 67cbefd85d9617fe8c574c0bd449694b2dbcdc8f..2b1d012346c37b7d0b5689aa2fe895b1fa5c393e 100644 --- a/103120/examples/request2.xml +++ b/103120/examples/request2.xml @@ -12,7 +12,7 @@ 45002c1e-dc4a-470a-9152-8e752638c86c 2015-09-01T12:01:00.000000Z - V1.8.1 + V1.10.1 XX v1.0 diff --git a/103120/examples/request3.xml b/103120/examples/request3.xml index 5da0df382bc54aab96d7a577222fcc449c0fe42b..dce66207fc39648701cd1673074b547fb02ca5bd 100644 --- a/103120/examples/request3.xml +++ b/103120/examples/request3.xml @@ -12,7 +12,7 @@ 69353ac0-9582-4c71-b162-86259c99de20 2015-09-01T12:02:00.000000Z - V1.8.1 + V1.10.1 XX v1.0 @@ -39,7 +39,16 @@ - Approver + John Doe + + john.doe@example.com + 442079460223 + + + Jane Doe + jane.doe@example.com + 442079461110 + 2015-09-01T12:00:00Z diff --git a/103120/examples/request4.xml b/103120/examples/request4.xml index 555974f0a91b1cda95c0ec060fd6d75bf278de9f..73d6c07783352e8bfe3bd8327c2b261196de5e10 100644 --- a/103120/examples/request4.xml +++ b/103120/examples/request4.xml @@ -12,7 +12,7 @@ c02358b2-76cf-4ba4-a8eb-f6436ccaea2e 2019-09-30T13:37:00.000000Z - V1.8.1 + V1.10.1 XX v1.0 @@ -55,7 +55,7 @@ ETSI InternationalE164 - +31701234567 + 442079460223 diff --git a/103120/examples/request5-Binary-Deli.xml b/103120/examples/request5-Binary-Delivery.xml similarity index 98% rename from 103120/examples/request5-Binary-Deli.xml rename to 103120/examples/request5-Binary-Delivery.xml index 7d5170752e0475762923ed6fbdcc9282801b8114..2a13dfbbe6b9ad652b8dd8cb82195d8757a49267 100644 --- a/103120/examples/request5-Binary-Deli.xml +++ b/103120/examples/request5-Binary-Delivery.xml @@ -12,7 +12,7 @@ 8854cfad-44ac-43b8-99ae-530b690b43da 2019-09-30T13:37:37.000000Z - V1.8.1 + V1.10.1 XX v1.0 diff --git a/103120/examples/request5-XML-Deli.xml b/103120/examples/request5-XML-Delivery.xml similarity index 99% rename from 103120/examples/request5-XML-Deli.xml rename to 103120/examples/request5-XML-Delivery.xml index f9314cdd3f3719b3d67dd0ba88122e0071a905d4..c345dbbe507c78e3c2b581f5410b964232920437 100644 --- a/103120/examples/request5-XML-Deli.xml +++ b/103120/examples/request5-XML-Delivery.xml @@ -12,7 +12,7 @@ 8854cfad-44ac-43b8-99ae-530b690b43da 2019-09-30T13:37:37.000000Z - V1.8.1 + V1.10.1 XX v1.0 diff --git a/103120/examples/request6.xml b/103120/examples/request6.xml new file mode 100644 index 0000000000000000000000000000000000000000..15a2bf1f259595a8f2c4520a146253429287bcfb --- /dev/null +++ b/103120/examples/request6.xml @@ -0,0 +1,80 @@ + + +
+ + XX + ACTOR01 + + + XX + ACTOR02 + + c02358b2-76cf-4ba4-a8eb-f6436ccaea2f + 2021-10-11T13:37:00.000000Z + + V1.10.1 + XX + v1.0 + +
+ + + + + 0 + + + 7dbbc880-8750-4d3c-abe7-ea4a1764604f + XX + ACTOR01 + W000001 + + 2021-10-11T12:00:00Z + 2021-12-01T12:00:00Z + + + + + + 1 + + + 2b36a78b-b628-416d-bd22-404e68a0cd3f + XX + ACTOR01 + + 7dbbc880-8750-4d3c-abe7-ea4a1764604f + + XX-ACTOR01-1234 + + 2021-10-03T12:32:12Z + 2021-10-03T12:35:34Z + 2021-10-03T13:37:00Z + + + + ETSI + IPv4Address + + 192.0.2.23 + + + + + + + 192.0.2.0 + + + + + XX + ACTOR02 + + + + + + + +
diff --git a/103120/examples/request6_signed.xml b/103120/examples/request6_signed.xml new file mode 100644 index 0000000000000000000000000000000000000000..2bc0404ef924498e7280669c399ac4c430873787 --- /dev/null +++ b/103120/examples/request6_signed.xml @@ -0,0 +1,118 @@ + +
+ + XX + ACTOR01 + + + XX + ACTOR02 + + 9964584e-c1a5-4ffa-b949-d9da504c4efb + 2021-06-25T12:00:00.000000Z + + V1.9.1 + XX + v1.0 + +
+ + + + + 0 + + + 68c78910-c922-45f2-aeb3-017eb958bb05 + XX + ACTOR01 + W000001 + + 2021-06-25T12:00:00Z + 2021-09-01T12:00:00Z + + + + + + 1 + + + 4d8127db-e8bc-4a69-9378-457f0424ec2c + XX + ACTOR01 + + 68c78910-c922-45f2-aeb3-017eb958bb05 + + LIID1 + + + + + ETSI + InternationalizedEmailAddress + + Όνομα.παραδείγματος@example.com + + + + + ETSI + TaskDeliveryType + IRIandCC + + + + + 192.0.2.0 + + + + + XX + RECVER01 + + + + + + + + + + + + + + + + + + kARbaz+wH6oJWSvmy6Fk4vTQ7t4m3Y16IiNNdDO08/I= + + + DdT9ie03Z9O47sN8ad9gsfuhZhchtNhtvTyNhtiHKuqgNCt696tDH2c68tVqr+iJ3WpCn0gWJHKnYeniTwVPj6fxDh2RbCqk5SVHvdggZjCv3BInNH0ZfOrlvuArJS3UP/gifYXlT5s59Seze1nSjZDNeC25o9WRxNy0krGrhbqIFjxTHDilR40cmKq2SI1540yM3rsc+5D3hgsxGu7ly2dg7qtiFGQIQaFJi8twrViQUnOyDZ63yJHhWeLVU+2FvIuBZh3orDc3VipKsbqrjrDqdfi8qfYEHHPp25DfTpHXnCuhD/3hOwcxvhVJ4+47R8ysO9qMTvGRCUNptgskhQ== + + + MIIC/zCCAeegAwIBAgIUUOGdj0hEfnnW9gqIOCTJ9EUocnMwDQYJKoZIhvcNAQEL +BQAwDzENMAsGA1UEAwwEdGVzdDAeFw0yMTA2MjUwNzIyMDlaFw0yNDAzMjEwNzIy +MDlaMA8xDTALBgNVBAMMBHRlc3QwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK +AoIBAQDc9UQSsRmchhOCixyrHvmjmDFeIApVlfTfVV5RJL/280wDlAYymhAcEcvM +OyvBCHq4c3M8hBxt9zKDmV+NbcDqXyblt8rVpjzbggn3Ch2dMJ/kLNO+O+WJSl3J +pyx3b4r8IVoUDXai2sjX8jLNYI4TC673X3xX1VikzcGwFjt2zbL+WLHEnvUVeG/8 +FJfRl2ttWlSFMA2252akOwtAPF4AKJBW5pXSeILA+K32bf+Y5JMODWwI+njylAaf +TFV1eM/dTOSEKYCHVCN0cxiO6KCC2GSzLeQEGWmh/C+uyhSlLW/6EyEHJcLdi6eT +PunYJGanai6PLLr5zNWXlvcj/YbZAgMBAAGjUzBRMB0GA1UdDgQWBBSFT3NqexF1 +LcYkjqUr9MMTIFp/ATAfBgNVHSMEGDAWgBSFT3NqexF1LcYkjqUr9MMTIFp/ATAP +BgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQCzwydpNgq680qWmd0D +4ya9fHUopeX7LBSYOU7NU3CagjXnUMwaCmSpokkH0Wvn1UtXDUF+slA9bEeXkfZm +70YW8msIEt1mljDi4CBI+MvaJ40OJkXwkQUE3dhj9LJl5Nv0UBEyv7k/a/6+eO9K +OQoHIVqXwrWs9JHTW6T4diN1w7xcgvSXhlcOySHjfNzFzferqx8i0/Wz6jD/7YSC +FOEaUrXbeFS3asRoZRLW6uXgfDJ7qfCmUZZ853OF3MN63OwWjPGxtFmeZAqMS/K0 +FKgwMCrmZlVq6Fx87E+sc3eppXIceCau/+CHG91mRvMSha6jQD7jLMT9xjND5Dob +/scV + + + + +
\ No newline at end of file diff --git a/103120/examples/response1.xml b/103120/examples/response1.xml index 25aa22c9fee5e4873142b34d7aff30c82e25021e..54fad1cea1741d9c2d3fd9e8fac21816b4206551 100644 --- a/103120/examples/response1.xml +++ b/103120/examples/response1.xml @@ -12,7 +12,7 @@ c02358b2-76cf-4ba4-a8eb-f6436ccaea2e 2015-09-01T12:00:01.000000Z - V1.8.1 + V1.10.1 XX v1.0 diff --git a/103120/examples/response2.xml b/103120/examples/response2.xml index 9ae5d35a80a58d747f995357752a222cdb41cd5d..104a76f5455b7625ca859d4e5cb919d9d6a40b57 100644 --- a/103120/examples/response2.xml +++ b/103120/examples/response2.xml @@ -12,7 +12,7 @@ 45002c1e-dc4a-470a-9152-8e752638c86c 2015-09-01T12:01:00.000000Z - V1.8.1 + V1.10.1 XX v1.0 @@ -71,7 +71,7 @@ ETSI InternationalE164 - +447700900000 + 442079460223 @@ -94,11 +94,11 @@ 3000 The associated Authorisation is in an Invalid state - + - + diff --git a/103120/examples/response3.xml b/103120/examples/response3.xml index e3b1537dce4c53c395ef3c1adc6090af76661793..445187d48fdb19f46e96cfb813f467c9190d9b01 100644 --- a/103120/examples/response3.xml +++ b/103120/examples/response3.xml @@ -12,7 +12,7 @@ 69353ac0-9582-4c71-b162-86259c99de20 2015-09-01T12:02:00.000000Z - V1.8.1 + V1.10.1 XX v1.0 diff --git a/103120/examples/response4.xml b/103120/examples/response4.xml index a8dc811c0046124966418f8127ad3b8affd9f312..3ca45c26bb40c2ab11ec4c7dda7a2490639ad354 100644 --- a/103120/examples/response4.xml +++ b/103120/examples/response4.xml @@ -12,7 +12,7 @@ c02358b2-76cf-4ba4-a8eb-f6436ccaea2e 2019-09-30T13:37:01.000000Z - V1.8.1 + V1.10.1 XX v1.0 diff --git a/103120/examples/response5.xml b/103120/examples/response5.xml index e210444e8a85f4dab6b4e2e9a593c551db3b8596..d02dff5149c3ae24115c323f76194bfa70b93677 100644 --- a/103120/examples/response5.xml +++ b/103120/examples/response5.xml @@ -1,9 +1,9 @@ -
@@ -17,7 +17,7 @@ 8854cfad-44ac-43b8-99ae-530b690b43da 2019-09-30T13:37:37.000000Z - V1.8.1 + V1.10.1 XX v1.0 diff --git a/103120/examples/response6.xml b/103120/examples/response6.xml new file mode 100644 index 0000000000000000000000000000000000000000..99b0ddc135eb3e7269dab1b19373cf53b8c5b7ef --- /dev/null +++ b/103120/examples/response6.xml @@ -0,0 +1,38 @@ + + +
+ + XX + ACTOR01 + + + XX + ACTOR02 + + c02358b2-76cf-4ba4-a8eb-f6436ccaea2f + 2021-10-11T13:37:01.000000Z + + V1.10.1 + XX + v1.0 + +
+ + + + + 0 + + 7dbbc880-8750-4d3c-abe7-ea4a1764604f + + + + 1 + + 2b36a78b-b628-416d-bd22-404e68a0cd3f + + + + + +
diff --git a/103120/schema/ts_103120_Common.xsd b/103120/schema/ts_103120_Common.xsd index 6ebf3406d772ff43e074e620978839b1dcd45097..abaf3235af1ecc6e64e1038c7ede7fe7e8e53020 100644 --- a/103120/schema/ts_103120_Common.xsd +++ b/103120/schema/ts_103120_Common.xsd @@ -37,6 +37,7 @@ + @@ -44,6 +45,14 @@ + + + + + + + + diff --git a/103120/schema/ts_103120_Core.xsd b/103120/schema/ts_103120_Core.xsd index af1674ddfe45821634245197ebb7491779493078..1105f2c296849ad9e6f75adf360432e0bfa9bc3e 100644 --- a/103120/schema/ts_103120_Core.xsd +++ b/103120/schema/ts_103120_Core.xsd @@ -2,7 +2,7 @@ + diff --git a/103221-1/TS_103_221_01.xsd b/103221-1/TS_103_221_01.xsd index d06eb9f7c823c5e9602d2c50f4346ae2002edca1..490e9c4eb68f36c6bb328608b07571c4edf1ff71 100644 --- a/103221-1/TS_103_221_01.xsd +++ b/103221-1/TS_103_221_01.xsd @@ -1,6 +1,7 @@ - + + @@ -101,6 +102,11 @@ + + + + + @@ -131,6 +137,7 @@ + @@ -174,6 +181,8 @@ + + @@ -628,6 +637,7 @@ + @@ -657,6 +667,7 @@ + @@ -789,4 +800,126 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/103221-1/TS_103_221_01_HashedID.xsd b/103221-1/TS_103_221_01_HashedID.xsd new file mode 100644 index 0000000000000000000000000000000000000000..f5e735d2dd6a8fde7d80749d714be0e182c2212c --- /dev/null +++ b/103221-1/TS_103_221_01_HashedID.xsd @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/103221-1/examples/CreateHashedID_example.xml b/103221-1/examples/CreateHashedID_example.xml new file mode 100644 index 0000000000000000000000000000000000000000..89dea20f7200f4b1dab4fa7ae966bb998126be25 --- /dev/null +++ b/103221-1/examples/CreateHashedID_example.xml @@ -0,0 +1,38 @@ + + + + admfID + neID + 2017-10-06T18:46:21.247432Z + v1.9.1 + f9138c05-f82e-4cf4-a1ae-ae92fed2d564 + + 30fbde5e-3195-4a22-b3e9-15e1d60d0528 + sha-256 + 4241792fc4d3d097 + + + + admfID + neID + 2017-10-06T18:46:21.247432Z + v1.9.1 + f9138c05-f82e-4cf4-a1ae-ae92fed2d565 + + 30fbde5e-3195-4a22-b3e9-15e1d60d0529 + + + + 30fbde5e-3195-4a22-b3e9-15e1d60d0528 + InternationalE164 + 303e57c6968f308a6a7df0ef48c0e21580bc29ae2ed1bd8e5466eb42e72cc39a + + + + X2andX3 + + + + diff --git a/103221-1/examples/CreateObject_example.xml b/103221-1/examples/CreateObject_example.xml new file mode 100644 index 0000000000000000000000000000000000000000..3b0e3e9fc642c7681c3e6436ea6caf5ee19d3e53 --- /dev/null +++ b/103221-1/examples/CreateObject_example.xml @@ -0,0 +1,16 @@ + + + + admfID + neID + 2017-10-06T18:46:21.247432Z + v1.10.1 + 3741800e-971b-4aa9-85f4-466d2b1adc7f + + 3741800e-971b-4aa9-85f4-466d2b1adc7e + 1 + + + diff --git a/103221-1/examples/ExampleGenericObjects.xsd b/103221-1/examples/ExampleGenericObjects.xsd new file mode 100644 index 0000000000000000000000000000000000000000..8b20e5fd93d7c26484d430a459e50ae86f1c34b7 --- /dev/null +++ b/103221-1/examples/ExampleGenericObjects.xsd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/103221-1/examples/GetAllDetailsResponse_example2.xml b/103221-1/examples/GetAllDetailsResponse_example2.xml new file mode 100644 index 0000000000000000000000000000000000000000..61ac9221befa0586f1eb1e98a0ce0c36875d9e49 --- /dev/null +++ b/103221-1/examples/GetAllDetailsResponse_example2.xml @@ -0,0 +1,67 @@ + + + + admfID + neID + 2017-10-06T18:46:21.496743Z + v1.10.1 + bfd0c982-b7d6-4a8e-80a0-89dab964aafd + + OK + + + + + + 29f28e1c-f230-486a-a860-f5a784ab9172 + + + 447700900000 + + + X2andX3 + + 1eb4406a-8b28-41fd-8f0f-e1a0a3eb5ff9 + + + + complete + + + + + + + + b0ce308c-aa17-42bd-a27b-287bcb5b3468 + X2andX3 + + + + 192.0.2.2 + + + 12345 + + + + + + activeAndWorking + + + + + + + + 3741800e-971b-4aa9-85f4-466d2b1adc7e + 1 + + + OK + + + + + diff --git a/103221-1/examples/GetObjectResponse_example.xml b/103221-1/examples/GetObjectResponse_example.xml new file mode 100644 index 0000000000000000000000000000000000000000..b7f58e71d41539ce1d375544c0f5b157d29456a2 --- /dev/null +++ b/103221-1/examples/GetObjectResponse_example.xml @@ -0,0 +1,16 @@ + + + + admfID + neID + 2017-10-06T18:46:21.247432Z + v1.10.1 + 3741800e-971b-4aa9-85f4-466d2b1adc7f + + + 3741800e-971b-4aa9-85f4-466d2b1adc7e + 1 + + + + diff --git a/103221-1/examples/GetObject_example.xml b/103221-1/examples/GetObject_example.xml new file mode 100644 index 0000000000000000000000000000000000000000..8ffc3fa6387b8ea1e20ef06d074db14173b058af --- /dev/null +++ b/103221-1/examples/GetObject_example.xml @@ -0,0 +1,11 @@ + + + + admfID + neID + 2017-10-06T18:46:21.247432Z + v1.10.1 + 3741800e-971b-4aa9-85f4-466d2b1adc7f + 3741800e-971b-4aa9-85f4-466d2b1adc7e + + diff --git a/103221-1/examples/ListAllDetailsResponse_example2.xml b/103221-1/examples/ListAllDetailsResponse_example2.xml new file mode 100644 index 0000000000000000000000000000000000000000..7ca03d6a87f5cbdb0989fd452224c37f39b09c6b --- /dev/null +++ b/103221-1/examples/ListAllDetailsResponse_example2.xml @@ -0,0 +1,19 @@ + + + + admfID + neID + 2017-10-06T18:46:21.508330Z + v1.10.1 + 09529160-2e44-49c6-bf54-204ca5edcfab + + 29f28e1c-f230-486a-a860-f5a784ab9172 + + + b0ce308c-aa17-42bd-a27b-287bcb5b3468 + + + 3741800e-971b-4aa9-85f4-466d2b1adc7e + + + diff --git a/103221-1/examples/ListObjectResponse_example.xml b/103221-1/examples/ListObjectResponse_example.xml new file mode 100644 index 0000000000000000000000000000000000000000..8b79d9f3f8f68b81d37a586a85c94f35997179e6 --- /dev/null +++ b/103221-1/examples/ListObjectResponse_example.xml @@ -0,0 +1,13 @@ + + + + admfID + neID + 2017-10-06T18:46:21.247432Z + v1.6.1 + 3741800e-971b-4aa9-85f4-466d2b1adc7f + + 3741800e-971b-4aa9-85f4-466d2b1adc7e + + + diff --git a/103221-1/examples/ListObject_example.xml b/103221-1/examples/ListObject_example.xml new file mode 100644 index 0000000000000000000000000000000000000000..26a1aad953c767c7b81b4e3de55db6a0198099a7 --- /dev/null +++ b/103221-1/examples/ListObject_example.xml @@ -0,0 +1,11 @@ + + + + admfID + neID + 2017-10-06T18:46:21.247432Z + v1.10.1 + 3741800e-971b-4aa9-85f4-466d2b1adc7f + Q{http://uri.etsi.org/03221/X1/2017/10}Foo + + diff --git a/103280/TS_103_280.asn1 b/103280/TS_103_280.asn1 index c7b31a63158c6023395cf62e69e52651c8c63d5b..68cfe54e9a3e75ef0565bd50cd1c0d4bdbc8793f 100644 --- a/103280/TS_103_280.asn1 +++ b/103280/TS_103_280.asn1 @@ -91,4 +91,4 @@ GPSINAI ::= NAI NAI ::= UTF8String -END \ No newline at end of file +END diff --git a/103280/TS_103_280.xsd b/103280/TS_103_280.xsd index ce66ea6e07a51b9b1870ce32eb95d2c09eba3720..d6d91c5cca5b344d4a62035e515531407f180d38 100644 --- a/103280/TS_103_280.xsd +++ b/103280/TS_103_280.xsd @@ -1,5 +1,5 @@ - + @@ -241,4 +241,9 @@ - \ No newline at end of file + + + + + + diff --git a/103707/TS_103_707.xsd b/103707/TS_103_707.xsd index b5033684b8ffdf1a460fc35f10c1712427910c33..7bce63dbbddf26c259af57022ea51f89f2a12c04 100644 --- a/103707/TS_103_707.xsd +++ b/103707/TS_103_707.xsd @@ -3,7 +3,7 @@ xmlns:etsi103280="http://uri.etsi.org/03280/common/2017/07" xmlns="http://uri.etsi.org/03707/2020/02" targetNamespace="http://uri.etsi.org/03707/2020/02" - version="1.3.1" + version="1.4.1" elementFormDefault="qualified"> diff --git a/testing/check_xsd.py b/testing/check_xsd.py index db4ee8c7b34ffaae13ec9e522a503bd2ec344a17..816e3898aa2305c476a665b32c14237c82c22c3d 100644 --- a/testing/check_xsd.py +++ b/testing/check_xsd.py @@ -11,7 +11,6 @@ from lxml import etree from xml.etree.ElementTree import ParseError from xmlschema import XMLSchema, XMLSchemaParseError - def BuildSchemaDictonary (fileList): if len(fileList) == 0: logging.info("No schema files provided") @@ -22,7 +21,7 @@ def BuildSchemaDictonary (fileList): for schemaFile in fileList: try: xs = XMLSchema(schemaFile, validation='skip') - schemaLocations.append((xs.default_namespace, str(Path(schemaFile).resolve()))) + schemaLocations.append((xs.target_namespace, str(Path(schemaFile).resolve()))) logging.info(" [ {0} -> {1} ]".format(xs.default_namespace, schemaFile)) except ParseError as ex: logging.warning (" [ {0} failed to parse: {1} ]".format(schemaFile, ex)) @@ -53,6 +52,7 @@ def ValidateXSDFiles (fileList): schemaLocations = BuildSchemaDictonary(fileList) errors = {} + schemaDictionary = {} logging.info("Schema validation:") for schemaFile in fileList: @@ -60,6 +60,7 @@ def ValidateXSDFiles (fileList): schema = XMLSchema(schemaFile, locations = schemaLocations) logging.info(schemaFile + ": OK") errors[schemaFile] = [] + schemaDictionary[schema.target_namespace] = schema except XMLSchemaParseError as ex: if (ex.schema_url) and (ex.schema_url != ex.origin_url): logging.info(" Error {1} comes from {0}, suppressing".format(ex.schema_url, ex.message)) @@ -67,7 +68,7 @@ def ValidateXSDFiles (fileList): else: logging.warning(schemaFile + ": Failed validation ({0})".format(ex)) errors[schemaFile] = [ex.message] - return errors + return errors, schemaDictionary def ValidateInstanceDocuments (coreFile, supportingSchemas, instanceDocs): @@ -91,6 +92,7 @@ if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument("-v", "--verbosity", help="verbosity level", action="count", default=0) parser.add_argument("input", help="include a directory or file", action="append", nargs="+") + parser.add_argument("-p", "--primaryNamespace", help="Primary schema namespace for instance doc validation") args = parser.parse_args() logging.getLogger().setLevel(logging.WARNING) @@ -100,8 +102,10 @@ if __name__ == '__main__': logging.getLogger().setLevel(logging.DEBUG) logging.debug("Very verbose selected") + logging.debug(f"Path: {args.input}") includeFileList = [] + includeInstanceDocList = [] for path in args.input[0]: p = Path(path) if not p.exists(): @@ -112,12 +116,25 @@ if __name__ == '__main__': for g in glob.glob(os.path.join(str(p), "*.xsd")): logging.info(f">Including {g}") includeFileList.append(g) + for g in glob.glob(os.path.join(str(p), "*.xml")): + logging.info(f">Including instance doc {g}") + includeInstanceDocList.append(g) else: - logging.info(f"Including {p.absolute()}") - includeFileList.append(p.absolute()) + logging.info(f">Including {p.absolute()}") + if str(p.absolute()).endswith('.xml'): + includeInstanceDocList.append(str(p.absolute())) + elif str(p.absolute()).endswith('.xsd'): + includeFileList.append(str(p.absolute())) + else: + logging.warning(f'Ignoring file {p.absolute()}') + if len(includeInstanceDocList) and (args.primaryNamespace is None): + print("Cannot validate instance documents without specifying a primary namespace (use -h for usage guidelines)") + exit(-1) + syntaxErrors = 0 + print ("=============================") print ("XSD syntax checks:") print ("-----------------------------") for file in includeFileList: @@ -132,9 +149,12 @@ if __name__ == '__main__': if (syntaxErrors > 0): print (f"{syntaxErrors} syntax errors detected") exit(syntaxErrors) + else: + print ("0 syntax errors detected") - results = ValidateXSDFiles(includeFileList) + results, schemaDict = ValidateXSDFiles(includeFileList) + print ("=============================") print ("XSD build checks:") print ("-----------------------------") errorCount = 0 @@ -152,4 +172,23 @@ if __name__ == '__main__': print ("-----------------------------") print (f"{errorCount} build errors detected") - exit(errorCount) \ No newline at end of file + if (errorCount > 0): + exit(errorCount) + + print ("=============================") + print ("Instance document checks") + print ("-----------------------------") + errorCount = 0 + + primarySchema = schemaDict[args.primaryNamespace] + for instanceDoc in includeInstanceDocList: + try: + results = primarySchema.validate(instanceDoc) + print (f" {instanceDoc} : OK") + except Exception as ex: + errorCount += 1 + print (f" {instanceDoc} : {str(ex)}") + print ("-----------------------------") + print (f"{errorCount} instance doc errors detected") + print ("=============================") + exit(errorCount) diff --git a/testing/deps/xmldsig/xmldsig-core-schema.xsd b/testing/deps/xmldsig/xmldsig-core-schema.xsd new file mode 100644 index 0000000000000000000000000000000000000000..df126b30e684091b32a748cd2e408f5fb9d651a9 --- /dev/null +++ b/testing/deps/xmldsig/xmldsig-core-schema.xsd @@ -0,0 +1,318 @@ + + + + + + ]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +