SID:SampleReplaceStempseudonym

Uit Kennisnet Developers Documentatie
Versie door Fleischeuers01 (overleg | bijdragen) op 1 jun 2017 om 10:24 (Nieuwe pagina aangemaakt met '==Request== <syntaxhighlight lang="xml" line highlight="28"> POST https://service-t.id.school/eck/ws/201703/ HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: te...')
(wijz) ← Oudere versie | Huidige versie (wijz) | Nieuwere versie → (wijz)
Naar navigatie springen Naar zoeken springen
De printervriendelijke versie wordt niet langer ondersteund en kan weergavefouten bevatten. Werk uw browserbladwijzers bij en gebruik de gewone afdrukfunctie van de browser.

Nummervoorziening-symbol.png Nummervoorziening: SampleReplaceStempseudonym

Request

 1POST https://service-t.id.school/eck/ws/201703/ HTTP/1.1
 2Accept-Encoding: gzip,deflate
 3Content-Type: text/xml;charset=UTF-8
 4SOAPAction: "http://id.school/eck/schemas/v1_0/replaceStampseudonym"
 5Content-Length: 870
 6Host: service-t.id.school
 7Connection: Keep-Alive
 8User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
 9
10<soapenv:Envelope 
11	xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
12	xmlns:v1="http://id.school/eck/schemas/v1_0">
13   <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
14   	<wsa:Action>
15   		http://id.school/eck/schemas/v1_0/replaceStampseudonym
16   	</wsa:Action>
17   	wsa:From>
18   	<wsa:Address>
19   		http://www.w3.org/2005/08/addressing/anonymous?oin=0000000700019HY34567
20   	</wsa:Address>
21   </wsa:From>
22   <wsa:MessageID>uuid:95013a44-1583-49bc-8ffb-fce6eafb0840</wsa:MessageID>
23   <wsa:To>https://service-t.id.school/eck/ws/201703/</wsa:To>
24</soapenv:Header>
25   <soapenv:Body>
26      <v1:replaceStampseudonymRequest>
27         <v1:hpgnOld>1f600cb5a432a31f6f877528324f4eca08b2006d50bb8d6374591be4ea995828</v1:hpgnOld>
28         <v1:hpgnNew>8a333608fc1c31ff37618d12f76be459078ddddd227fa8031458a72b662b6f93</v1:hpgnNew>
29         <v1:effectiveDate>2017-06-01T13:26:30.806+01:00</v1:effectiveDate>
30      </v1:replaceStampseudonymRequest>
31   </soapenv:Body>
32</soapenv:Envelope>

Response

The stempseudonym that is returned by this function (line 22 in the response) is the stempseudonym that is associated to the new hashed PGN, starting at effectiveDate if given or now. This stempseudonym used to be associated with hpgnOld in the request. Starting effectiveDate or now, the hashed PGN n hpgnOld can no longer be used (see below).

 1<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
 2   <soap:Header>
 3      <Action xmlns="http://www.w3.org/2005/08/addressing">
 4         http://id.school/eck/schemas/v1_0/SchoolID/replaceStampseudonymResponse
 5      </Action>
 6      <MessageID xmlns="http://www.w3.org/2005/08/addressing">
 7         urn:uuid:2544795a-729a-4887-bbbf-ac0fba5ab08c
 8      </MessageID>
 9      <To xmlns="http://www.w3.org/2005/08/addressing">
10         http://www.w3.org/2005/08/addressing/anonymous?oin=0000000700019HY34567
11      </To>
12      <RelatesTo xmlns="http://www.w3.org/2005/08/addressing">
13         uuid:95013a44-1583-49bc-8ffb-fce6eafb0840
14      </RelatesTo>
15      <From xmlns="http://www.w3.org/2005/08/addressing">
16         <Address>http://www.w3.org/2005/08/addressing/anonymous?oin=00000003272448340000</Address>
17      </From>
18   </soap:Header>
19   <soap:Body>
20      <replaceStampseudonymResponse xmlns="http://id.school/eck/schemas/v1_0">
21         <stampseudonym>
22            https://id.school/sppilot/b87d57ea2b40fe0cfb7cf29b3d162dc1e5cb8ca5e040a3208fec5220c0d65a5cfbe627afe67c8e779e045a5049c8e61caf592da5f17d4c872017fa5352498436
23         </stampseudonym>
24      </replaceStampseudonymResponse>
25   </soap:Body>
26</soap:Envelope>

Followup request

The error that is returned when a hashed PGN is used that was substituted:

 1POST https://service-t.id.school/eck/ws/201703/ HTTP/1.1
 2Accept-Encoding: gzip,deflate
 3Content-Type: text/xml;charset=UTF-8
 4SOAPAction: "http://id.school/eck/schemas/v1_0/retrieveStampseudonym"
 5Content-Length: 768
 6Host: service-t.id.school
 7Connection: Keep-Alive
 8User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
 9
10<soapenv:Envelope 
11  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
12  xmlns:v1="http://id.school/eck/schemas/v1_0">
13   <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
14     <wsa:Action>http://id.school/eck/schemas/v1_0/retrieveStampseudonym</wsa:Action>
15     <wsa:From>
16       <wsa:Address>
17         http://www.w3.org/2005/08/addressing/anonymous?oin=0000000700019HY34567
18       </wsa:Address>
19     </wsa:From>
20     <wsa:MessageID>uuid:8d9076aa-6b39-437b-91a9-e6d250ff8eeb</wsa:MessageID>
21     <wsa:To>https://service-t.id.school/eck/ws/201703/</wsa:To>
22   </soapenv:Header>
23   <soapenv:Body>
24      <v1:retrieveStampseudonymRequest>
25         <v1:hpgn>1f600cb5a432a31f6f877528324f4eca08b2006d50bb8d6374591be4ea995828</v1:hpgn>
26      </v1:retrieveStampseudonymRequest>
27   </soapenv:Body>
28</soapevn:Envelope>

Gets the response:

 1<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
 2   <soap:Header>
 3      <Action xmlns="http://www.w3.org/2005/08/addressing">
 4         http://id.school/eck/schemas/v1_0/SchoolID/retrieveStampseudonym/Fault/SOAPFaultException
 5      </Action>
 6      <MessageID xmlns="http://www.w3.org/2005/08/addressing">
 7         urn:uuid:7fe9e263-2e25-443a-8ee0-2c3f4d4560be
 8      </MessageID>
 9      <To xmlns="http://www.w3.org/2005/08/addressing">
10         http://www.w3.org/2005/08/addressing/anonymous?oin=0000000700019HY34567
11      </To>
12      <RelatesTo xmlns="http://www.w3.org/2005/08/addressing">
13         uuid:8d9076aa-6b39-437b-91a9-e6d250ff8eeb
14      </RelatesTo>
15      <From xmlns="http://www.w3.org/2005/08/addressing">
16         <Address>http://www.w3.org/2005/08/addressing/anonymous?oin=00000003272448340000</Address>
17      </From>
18   </soap:Header>
19   <soap:Body>
20      <soap:Fault>
21         <faultcode>soap:SERVER</faultcode>
22         <faultstring>Fout geconstateerd bij het verwerken van een aanroep van 'retrieveStampseudonym': Het aangeleverde HPgn is geblokkeerd</faultstring>
23         <faultactor>BlockedHPgnException</faultactor>
24         <detail>
25            <message>Het aangeleverde HPgn is geblokkeerd</message>
26         </detail>
27      </soap:Fault>
28   </soap:Body>
29</soap:Envelope>