SID:SampleReplaceStempseudonym

Uit Kennisnet Developers Documentatie
Naar navigatie springen Naar zoeken springen

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 13 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">http://ketenid.nl/eck/schemas/v1_0/EckIDPort/replaceStampseudonymResponse</Action>
 4      <MessageID xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:842bc5a6-b004-4872-a428-a14c02c37dfa</MessageID>
 5      <To xmlns="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/addressing/anonymous?oin=0000000700019HY34567</To>
 6      <RelatesTo xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:a61d7a7d-cd0c-4b41-9b14-fa86a5391e08</RelatesTo>
 7      <From xmlns="http://www.w3.org/2005/08/addressing">
 8         <Address>http://www.w3.org/2005/08/addressing/anonymous?oin=00000003272448340000</Address>
 9      </From>
10   </soap:Header>
11   <soap:Body>
12      <replaceStampseudonymResponse xmlns="http://ketenid.nl/eck/schemas/v1_0">
13         <stampseudonym>https://ketenid.nl/sppilot/b87d57ea2b40fe0cfb7cf29b3d162dc1e5cb8ca5e040a3208fec5220c0d65a5cfbe627afe67c8e779e045a5049c8e61caf592da5f17d4c872017fa5352498436</stampseudonym>
14      </replaceStampseudonymResponse>
15   </soap:Body>
16</soap:Envelope>

Followup request

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

 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/retrieveStampseudonym"
 5Content-Length: 1031
 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/"
11xmlns:v1="http://ketenid.nl/eck/schemas/v1_0" xmlns:a="http://www.w3.org/2005/08/addressing">
12   <soapenv:Header>
13      <a:Action soapenv:mustUnderstand="1">http://ketenid.nl/eck/schemas/v1_0/retrieveStampseudonym</a:Action>
14      <a:MessageID>urn:uuid:a61d7a7d-cd0c-4b41-9b14-fa86a5391e08</a:MessageID>
15      <a:To soapenv:mustUnderstand="1">https://service-s.ketenid.nl/eck/ws/201703</a:To>
16      <a:From a:IsReferenceParameter="true">
17         <a:Address>http://www.w3.org/2005/08/addressing/anonymous?oin=0000000700019HY34567</a:Address>
18      </a:From>
19      <a:ReplyTo a:IsReferenceParameter="true">
20         <a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
21      </a:ReplyTo>
22   </soapenv:Header>
23   <soapenv:Body>
24      <v1:retrieveStampseudonymRequest>
25         <v1:hpgn>1f600cb5a432a31f6f877528324f4eca08b2006d50bb8d6374591be4ea995828</v1:hpgn>
26      </v1:retrieveStampseudonymRequest>
27   </soapenv:Body>
28</soapenv: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">http://ketenid.nl/eck/schemas/v1_0/EckIDPort/retrieveStampseudonym/Fault/SOAPFaultException</Action>
 4      <MessageID xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:22f85e55-11c1-4c48-b293-ac3db4098632</MessageID>
 5      <To xmlns="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/addressing/anonymous?oin=0000000700019HY34567</To>
 6      <RelatesTo xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:a61d7a7d-cd0c-4b41-9b14-fa86a5391e08</RelatesTo>
 7      <From xmlns="http://www.w3.org/2005/08/addressing">
 8         <Address>http://www.w3.org/2005/08/addressing/anonymous?oin=00000003272448340000</Address>
 9      </From>
10   </soap:Header>
11   <soap:Body>
12      <soap:Fault>
13         <faultcode>soap:SERVER</faultcode>
14         <faultstring>Fout geconstateerd bij het verwerken van een aanroep van 'retrieveStampseudonym': Het aangeleverde HPgn is geblokkeerd</faultstring>
15         <faultactor>BlockedHPgnException</faultactor>
16         <detail>
17            <message>Het aangeleverde HPgn is geblokkeerd</message>
18         </detail>
19      </soap:Fault>
20   </soap:Body>
21</soap:Envelope>