SID:Servicebeschrijvingen
Create ECK ID
SERVICE DESCRIPTION | retrieveEckId |
---|---|
CONTEXT | This service is called by allowed LAS systems to obtain a ECK ID for, for instance, a just enrolled student. This function is called during the process of enrollment, and its availability is business critical. |
INPUT |
|
VALIDATIONS |
|
OPERATION |
The service combines the three inputs and from the result derives a valid ECK ID. The derivation of a valid ECK ID is performed by a component that is specified in software configuration. If the provided hashed PGN is in substitutionList.new and sectorID is equal to the substitutionlist.sectorID and today is later than substitutiontable.effectivedate, the previous hashed PGN is used to derive the ECK ID from. |
OUTPUT | eckID: EckID, The derived ECK ID |
EXCEPTIONS |
|
REMARKS |
|
Change ECK ID (subsitution)
SERVICE DESCRIPTION | replaceEckId |
---|---|
CONTEXT | This service is called when a school administration needs to indicate that a student is assigned a new PGN by the authorities. A change of PGN number is handled as follows: the old and the new hashed PGN, the sectorID and chainID are recorded in the database; subsequent requests for the old PGN are rejected, and for requests with the new hashed PGN and the same SectorID, the old hashed PGN is used to derive the ECK ID from. See also service description Create ECK ID. |
INPUT |
|
VALIDATIONS |
|
OPERATION | Old hashed PGN, new Hashed PGN, chain ID and sectorID are recorded in the substitution table, and a ECK ID for the new hashed PGN is derived using function ‘Create ECK ID’. |
OUTPUT | eckID: EckId, The derived ECK ID for the new hpgn |
EXCEPTIONS |
|
REMARKS |
|
Batch creation of ECK IDs
SERVICE DESCRIPTION | submitEckIdBatch |
---|---|
CONTEXT | This service is called by allowed LAS systems to submit a list of hashed PGNs, for a single Sector and a single Chain. The system processes the list and makes a corresponding list of ECK IDs available for retrieval (see retrieveEckBatch). |
INPUT |
|
VALIDATIONS |
|
OPERATION | The service creates a ECK ID for each hashed PGN in the input list and adds it to the list of generated ECK IDs for output. If the list does not contain a hashed PGN or if the hashed PGN was previously indicated as changed, no ECK ID will be created and a message to indicate the nature of the failure will be added to the list of failed PGNs for output. If the provided hashed PGN is in substitutionList.new and sectorID is equal to the substitutionlist.sectorID and today is later than substitutiontable.effectivedate, the previous hashed PGN is used to derive the ECK ID from. |
OUTPUT |
|
EXCEPTIONS |
|
REMARKS |
The use of this service is limited to prevent abuse:
These limits are configured in the software and can be modified. Schools that exceed these limits are temporarily banned from submitting batch requests. Schools may contact Kennisnet servicedesk for information and for lifting of the bans. Schools may submit multiple batch requests, as long as the limits are observed. Batches are processed in the order in which they occur. A batch result is available within one hour after submission of the request. Batch results are removed after successful retrieval. The system may remove batch results that are not retrieved within 24 hours. |
SERVICE DESCRIPTION | retrieveEckIdBatch |
---|---|
CONTEXT | This service is called by allowed LAS systems to retrieve the status and result of a batch request. |
INPUT |
|
VALIDATIONS |
|
OPERATION | The service creates a ECK ID for each hashed PGN in the input list and adds it to the list of generated ECK IDs for output. If the list does not contain a hashed PGN or if the hashed PGN was previously indicated as changed, no ECK ID will be created and a message to indicate the nature of the failure will be added to the list of failed PGNs for output. |
OUTPUT |
|
EXCEPTIONS |
|
REMARKS |
The use of this service is limited to prevent abuse: a batch retrieval may be attempted at most once per 15 minutes (software configurable; actual limit may differ). In case this limit is exceeded, the offending school is temporarily banned from using this service. Schools may contact Kennisnet servicedesk for more information and to lift the ban. A batch result is available within one hour after submission of the request. Batch results are removed after successful retrieval. Batch results that are not retrieved can be removed after 24 hours. In the output of this function, both success and failure are optional arrays. If none of the input fail, the response will contain only ‘success’ values. If none of the input succeed, the response will contain only ‘failure’. |
Retrieving chains and sectors
SERVICE DESCRIPTION | retrieveChains |
---|---|
CONTEXT | This service is called by allowed LAS systems to obtain the list of chain parties for which an ECK ID can be derived. As this list changes rarely, this service will not be called often, probably not more than once per day per LAS. |
INPUT | none |
VALIDATIONS |
|
OPERATION | The service retrieves the list of active Chain Parties |
OUTPUT |
List of 1 or more :
|
EXCEPTIONS | NotAllowedCallerException |
REMARKS |
|
SERVICE DESCRIPTION | retrieveSectors |
---|---|
CONTEXT | This service is called by allowed LAS systems to obtain the list of school types for which an ECK ID can be derived. As this list changes rarely, this service will not be called often, probably not more than once per day per LAS. |
INPUT | none |
VALIDATIONS |
|
OPERATION | Retrieve the list of active SectorIDs from the database. |
OUTPUT |
List of 1 or more :
|
EXCEPTIONS | NotAllowedCallerException |
REMARKS |
The names, descriptions and values are taken from OBK. |
Ping operation
SERVICE DESCRIPTION | pingRequest |
---|---|
CONTEXT | This service is called by allowed LAS systems to verify the service is alive. |
INPUT | none |
VALIDATIONS |
|
OPERATION | Verify the database is available for operation |
OUTPUT |
|
EXCEPTIONS | NotAllowedCallerException |
REMARKS |
|
Sample Messages
Please note, input arguments are provided as sample only and may not be valid in production environments.
RetrieveEckID
Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:v1="http://id.school/eck/schemas/v1_0"
xmlns:a="http://www.w3.org/2005/08/addressing">
<soapenv:Header>
<a:Action soapenv:mustUnderstand="1">
http://id.school/eck/schemas/v1_0/retrieveEckId
</a:Action>
<a:From soapenv:mustUnderstand="1">
<a:Address>
http://www.w3.org/2005/08/addressing/anonymous?oin= 12345678901234567890
</a:Address>
</a:From>
<a:MessageID soapenv:mustUnderstand="1">
uuid:218f8239-9952-4e19-8176-38f629967e3c
</a:MessageID>
<a:To soapenv:mustUnderstand="1">
https://service-a.id.school/eck/ws/201509
</a:To>
</soapenv:Header>
<soapenv:Body>
<v1:retrieveEckIdRequest>
<v1:hpgn>123456789</v1:hpgn>
<v1:chainId>
http://purl.edustandaard.nl/begrippenkader/e7ec7d3c-c235-4513-bfb6-e54e66854795
</v1:chainId>
<v1:sectorId>
http://purl.edustandaard.nl/begrippenkader/512e4729-03a4-43a2-95ba-758071d1b725
</v1:sectorId>
</v1:retrieveEckIdRequest>
</soapenv:Body>
</soapenv:Envelope>
Response
<syntaxhightlight lang="xml"> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header> <Action xmlns="http://www.w3.org/2005/08/addressing"> http://id.school/eck/schemas/v1_0/SchoolID/retrieveEckIdResponse </Action> <MessageID xmlns="http://www.w3.org/2005/08/addressing"> urn:uuid:f80d16f5-e526-4754-b3f8-76995138de7c </MessageID> <To xmlns="http://www.w3.org/2005/08/addressing"> http://www.w3.org/2005/08/addressing/anonymous?oin= 12345678901234567890 </To> <RelatesTo xmlns="http://www.w3.org/2005/08/addressing"> uuid:7b44c0c9-a8eb-45ae-9aa1-2af9599f3375 </RelatesTo> <From xmlns="http://www.w3.org/2005/08/addressing"> <Address> http://www.w3.org/2005/08/addressing/anonymous?oin= 00000003272400000000 </Address> </From> </soap:Header> <soap:Body> <retrieveEckIdResponse xmlns="http://id.school/eck/schemas/v1_0"> <eckId> https://id.school/pilot/8078d3...28bc85 </eckId> </retrieveEckIdResponse> </soap:Body>
</soap:Envelope> </syntaxhighlight>
Example error response
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/%22>
<soap:Header>
<Action xmlns="http://www.w3.org/2005/08/addressing%22>
http://id.school/eck/schemas/v1_0/SchoolID/retrieveEckId/Fault/NotAllowedCallerException
</Action>
<MessageID xmlns="http://www.w3.org/2005/08/addressing%22>
urn:uuid:f8a78500-5e82-4fe5-9853-eaab78d819aa</MessageID>
<To xmlns="http://www.w3.org/2005/08/addressing%22>
http://www.w3.org/2005/08/addressing/anonymous?oin= 12345678901234567890
</To>
<RelatesTo xmlns="http://www.w3.org/2005/08/addressing%22>
uuid:218f8239-9952-4e19-8176-38f629967e3c</RelatesTo>
<From xmlns="http://www.w3.org/2005/08/addressing%22>
<Address>
http://www.w3.org/2005/08/addressing/anonymous?oin= 00000003272400000000
</Address>
</From>
</soap:Header>
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>
Uw Bevoegd Gezag is nog niet geautoriseerd voor het gebruik van de Nummervoorziening.
</faultstring>
</soap:Fault>
</soap:Body>
</soap:Envelope>
Replace EckID
Request
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/%22
xmlns:v1="http://id.school/eck/schemas/v1_0%22>
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing%22>
<wsa:Action soapenv:mustUnderstand="1">
http://id.school/eck/schemas/v1_0/replaceEckId
</wsa:Action>
<wsa:From soapenv:mustUnderstand="1">
<wsa:Address>
http://www.w3.org/2005/08/addressing/anonymous?oin= 12345678901234567890
</wsa:Address>
</wsa:From>
<wsa:MessageID soapenv:mustUnderstand="1">
uuid:bb3af1a4-55fe-418f-9d65-87217ebe4cc7
</wsa:MessageID>
<wsa:To soapenv:mustUnderstand="1">
https://service-a.id.school/eck/ws/201509
</wsa:To>
</soapenv:Header>
<soapenv:Body>
<v1:replaceEckIdRequest>
<v1:hpgnOld>Antoinette</v1:hpgnOld>
<v1:hpgnNew>Beatrijs</v1:hpgnNew>
<v1:chainId>
http://purl.edustandaard.nl/begrippenkader/e7ec7d3c-c235-4513-bfb6-e54e66854795
</v1:chainId>
<v1:sectorId>
http://purl.edustandaard.nl/begrippenkader/2a1401e9-c223-493b-9b86-78f6993b1a8d
</v1:sectorId>
</v1:replaceEckIdRequest>
</soapenv:Body>
</soapenv:Envelope>
Response
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/%22>
<soap:Header>
<Action xmlns="http://www.w3.org/2005/08/addressing%22>
http://id.school/eck/schemas/v1_0/SchoolID/replaceEckIdResponse
</Action>
<MessageID xmlns="http://www.w3.org/2005/08/addressing%22>
urn:uuid:d906b6fd-3806-45e8-b9c9-d8775fbb6fd7
</MessageID>
<To xmlns="http://www.w3.org/2005/08/addressing%22>
http://www.w3.org/2005/08/addressing/anonymous?oin= 12345678901234567890
</To>
<RelatesTo xmlns="http://www.w3.org/2005/08/addressing%22>
uuid:bb3af1a4-55fe-418f-9d65-87217ebe4cc7
</RelatesTo>
<From xmlns="http://www.w3.org/2005/08/addressing%22>
<Address>
http://www.w3.org/2005/08/addressing/anonymous?oin= 00000003272400000000
</Address>
</From>
</soap:Header>
<soap:Body>
<replaceEckIdResponse xmlns="http://id.school/eck/schemas/v1_0%22>
<eckId>
https://id.school/pilot/8a8781...96260e
</eckId>
</replaceEckIdResponse>
</soap:Body>
</soap:Envelope>
Batch
Submit batch request
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/%22
xmlns:v1="http://id.school/eck/schemas/v1_0%22
xmlns:a="http://www.w3.org/2005/08/addressing%22>
<soapenv:Header>
<a:Action soapenv:mustUnderstand="1">
http://id.school/eck/schemas/v1_0/submitEckIdBatch
</a:Action>
<a:From soapenv:mustUnderstand="1">
<a:Address>
http://www.w3.org/2005/08/addressing/anonymous?oin=12345678901234567890
</a:Address>
</a:From>
<a:MessageID soapenv:mustUnderstand="1">
uuid:47d17105-5aae-4c36-98ed-fe1147f89ee6
</a:MessageID>
<a:To soapenv:mustUnderstand="1">
https://service-a.id.school/eck/ws/201509
</a:To>
</soapenv:Header>
<soapenv:Body>
<v1:submitEckIdBatchRequest>
<!--1 or more repetitions:-->
<v1:hpgnList>
<v1:index>1</v1:index>
<v1:hPgn>Alexa</v1:hPgn>
</v1:hpgnList>
<v1:hpgnList>
<v1:index>3</v1:index>
<v1:hPgn>Bernadette</v1:hPgn>
</v1:hpgnList>
<v1:hpgnList>
<v1:index>5</v1:index>
<v1:hPgn>Christina</v1:hPgn>
</v1:hpgnList>
<v1:hpgnList>
<v1:index>7</v1:index>
<v1:hPgn>Delaney</v1:hPgn>
</v1:hpgnList>
<v1:chainId>http://purl.edustandaard.nl/begrippenkader/e7ec7d3c-c235-4513-bfb6-e54e66854795</v1:chainId>
<v1:sectorId>http://purl.edustandaard.nl/begrippenkader/f3ac3fbb-5eae-49e0-8494-0a44855fff25</v1:sectorId>
</v1:submitEckIdBatchRequest>
</soapenv:Body>
</soapenv:Envelope>
Submit batch response
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/%22>
<soap:Header>
<Action xmlns="http://www.w3.org/2005/08/addressing%22>
http://id.school/eck/schemas/v1_0/SchoolID/submitEckIdBatchResponse
</Action>
<MessageID xmlns="http://www.w3.org/2005/08/addressing%22>
urn:uuid:add7a36a-ceac-41f9-a9fc-1c2fd54543d0
</MessageID>
<To xmlns="http://www.w3.org/2005/08/addressing%22>
http://www.w3.org/2005/08/addressing/anonymous?oin= 12345678901234567890
</To>
<RelatesTo xmlns="http://www.w3.org/2005/08/addressing%22>
uuid:47d17105-5aae-4c36-98ed-fe1147f89ee6
</RelatesTo>
<From xmlns="http://www.w3.org/2005/08/addressing%22>
<Address>
http://www.w3.org/2005/08/addressing/anonymous?oin= 00000003272400000000
</Address>
</From>
</soap:Header>
<soap:Body>
<submitEckIdBatchResponse xmlns="http://id.school/eck/schemas/v1_0%22>
<batchIdentifier>
2016062216374691e0ed3ba7544c71ac7856be9279f15f
</batchIdentifier>
</submitEckIdBatchResponse>
</soap:Body>
</soap:Envelope>
Retrieve batch request
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/%22
xmlns:v1="http://id.school/eck/schemas/v1_0%22
xmlns:a="http://www.w3.org/2005/08/addressing%22>
<soapenv:Header>
<a:Action soapenv:mustUnderstand="1">
http://id.school/eck/schemas/v1_0/retrieveEckIdBatch
</a:Action>
<a:From soapenv:mustUnderstand="1">
<a:Address>
http://www.w3.org/2005/08/addressing/anonymous?oin= 12345678901234567890
</a:Address>
</a:From>
<a:MessageID soapenv:mustUnderstand="1">
uuid:4e2a772e-6b6b-4dcf-ab15-58193678e69a
</a:MessageID>
<a:To soapenv:mustUnderstand="1">
https://service-a.id.school/eck/ws/201509
</a:To>
</soapenv:Header>
<soapenv:Body>
<v1:retrieveEckIdBatchRequest>
<v1:batchIdentifier>2016062216374691e0ed3ba7544c71ac7856be9279f15f</v1:batchIdentifier>
</v1:retrieveEckIdBatchRequest>
</soapenv:Body>
</soapenv:Envelope>
Retrieve batch response
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/%22>
<soap:Header>
<Action xmlns="http://www.w3.org/2005/08/addressing%22>
http://id.school/eck/schemas/v1_0/SchoolID/retrieveEckIdBatchResponse
</Action>
<MessageID xmlns="http://www.w3.org/2005/08/addressing%22>
urn:uuid:5cd37eef-cb58-4b2c-b8bc-6ccf4cc479ea
</MessageID>
<To xmlns="http://www.w3.org/2005/08/addressing%22>
http://www.w3.org/2005/08/addressing/anonymous?oin= 12345678901234567890
</To>
<RelatesTo xmlns="http://www.w3.org/2005/08/addressing%22>
uuid:4e2a772e-6b6b-4dcf-ab15-58193678e69a
</RelatesTo>
<From xmlns="http://www.w3.org/2005/08/addressing%22>
<Address>
http://www.w3.org/2005/08/addressing/anonymous?oin= 00000003272400000000
</Address>
</From>
</soap:Header>
<soap:Body>
<retrieveEckIdBatchResponse xmlns="http://id.school/eck/schemas/v1_0%22>
<success>
<index>1</index>
<eckId>https://id.school/pilot/bcd2a9...12b5b3</eckId>
</success>
<success>
<index>3</index>
<eckId>https://id.school/pilot/6f4411...fb2cbb</eckId>
</success>
<success>
<index>5</index>
<eckId>https://id.school/pilot/50e115...212395</eckId>
</success>
<success>
<index>7</index>
<eckId>https://id.school/pilot/742668...b6cb4</eckId>
</success>
</retrieveEckIdBatchResponse>
</soap:Body>
</soap:Envelope>
Common types
Name | HPgn |
---|---|
Fields | xsd:string |
Constraints |
|
Remarks | Contains the result of the prescribed hash function SCrypt |
Name | EckId |
---|---|
Fields | xsd:string |
Constraints |
|
Remarks |
Exceptions
Exceptions will be presented by the Nummervoorziening Service as Soap faults. To distinguish the cause Exception of an operation at the client, the element faultactor will hold the specific Exception. In the detail node, a message node is added with additional information regarding the Exception.
Example of a Soap fault as a response from the Nummervoorziening Service (omitting the Soap Headers):
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:SERVER</faultcode>
<faultstring>RetrieveEckIdBatch has thrown an exception while building the response</faultstring>
<faultactor>InvalidBatchIdentifierException</faultactor>
<detail>
<message>Batch with specified identifier does not exist</message>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
The reference clients will contain code in Java and C# to handle these faults and distinguish root causes.
- ↑ https://developers.wiki.kennisnet.nl/index.php?title=SID:Hoofdpagina
- ↑ https://developers.wiki.kennisnet.nl/index.php?title=SID:Hoofdpagina
- ↑ The size of the array is comfigured in software. Actual limit may differ.
- ↑ Limit is set in in software configuration; actual values may differ
- ↑ Idem