SID:SampleReplaceStempseudonym

Uit Kennisnet Developers Documentatie
Versie door Tedjakusuma01 (overleg | bijdragen) op 12 feb 2018 om 12:48 (Wijzigingen n.a.v. laatste release)
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-s.ketenid.nl/eck/ws/201703 HTTP/1.1
 2Accept-Encoding: gzip,deflate
 3Content-Type: text/xml;charset=UTF-8
 4SOAPAction: "http://ketenid.nl/eck/schemas/v1_0/replaceStampseudonym"
 5Content-Length: 1225
 6Host: service-s.ketenid.nl
 7Connection: Keep-Alive
 8User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
 9
10<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://ketenid.nl/eck/schemas/v1_0" xmlns:a="http://www.w3.org/2005/08/addressing">
11   <soapenv:Header>
12      <a:Action soapenv:mustUnderstand="1">http://ketenid.nl/eck/schemas/v1_0/replaceStampseudonym</a:Action><a:MessageID>urn:uuid:a61d7a7d-cd0c-4b41-9b14-fa86a5391e08</a:MessageID>
13      <a:To soapenv:mustUnderstand="1">https://service-s.ketenid.nl/service/201703</a:To>
14      <a:From a:IsReferenceParameter="true">
15         <a:Address>http://www.w3.org/2005/08/addressing/anonymous?oin=0000000700019HY34567</a:Address>
16      </a:From>
17      <a:ReplyTo a:IsReferenceParameter="true">
18         <a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
19      </a:ReplyTo></soapenv:Header>
20   <soapenv:Body>
21      <v1:replaceStampseudonymRequest>
22         <v1:hpgnOld>1f600cb5a432a31f6f877528324f4eca08b2006d50bb8d6374591be4ea995828</v1:hpgnOld>
23         <v1:hpgnNew>8a333608fc1c31ff37618d12f76be459078ddddd227fa8031458a72b662b6f93</v1:hpgnNew>
24         <!--Optional:-->
25         <v1:effectiveDate>2017-01-01T11:26:30.806+01:00</v1:effectiveDate>
26      </v1:replaceStampseudonymRequest>
27   </soapenv:Body>
28</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>