SID:SampleReplaceStempseudonym: verschil tussen versies
Naar navigatie springen
Naar zoeken springen
(Wijzigingen n.a.v. laatste release) |
(Wijzigingen n.a.v. laatste release) |
||
Regel 32: | Regel 32: | ||
==Response== |
==Response== |
||
− | The stempseudonym that is returned by this function (line |
+ | The stempseudonym that is returned by this function (line 13 in the response) is the stempseudonym that is associated to the <b>new</b> 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). |
− | <syntaxhighlight lang="xml" line highlight=" |
+ | <syntaxhighlight lang="xml" line highlight="13"> |
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> |
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> |
||
<soap:Header> |
<soap:Header> |
||
− | <Action xmlns="http://www.w3.org/2005/08/addressing"> |
+ | <Action xmlns="http://www.w3.org/2005/08/addressing">http://ketenid.nl/eck/schemas/v1_0/EckIDPort/replaceStampseudonymResponse</Action> |
⚫ | |||
− | http://id.school/eck/schemas/v1_0/SchoolID/replaceStampseudonymResponse |
||
⚫ | |||
− | </Action> |
||
− | < |
+ | <RelatesTo xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:a61d7a7d-cd0c-4b41-9b14-fa86a5391e08</RelatesTo> |
− | urn:uuid:2544795a-729a-4887-bbbf-ac0fba5ab08c |
||
− | </MessageID> |
||
⚫ | |||
⚫ | |||
− | </To> |
||
− | <RelatesTo xmlns="http://www.w3.org/2005/08/addressing"> |
||
− | uuid:95013a44-1583-49bc-8ffb-fce6eafb0840 |
||
− | </RelatesTo> |
||
<From xmlns="http://www.w3.org/2005/08/addressing"> |
<From xmlns="http://www.w3.org/2005/08/addressing"> |
||
<Address>http://www.w3.org/2005/08/addressing/anonymous?oin=00000003272448340000</Address> |
<Address>http://www.w3.org/2005/08/addressing/anonymous?oin=00000003272448340000</Address> |
||
Regel 54: | Regel 46: | ||
</soap:Header> |
</soap:Header> |
||
<soap:Body> |
<soap:Body> |
||
− | <replaceStampseudonymResponse xmlns="http:// |
+ | <replaceStampseudonymResponse xmlns="http://ketenid.nl/eck/schemas/v1_0"> |
⚫ | |||
− | <stampseudonym> |
||
⚫ | |||
− | </stampseudonym> |
||
</replaceStampseudonymResponse> |
</replaceStampseudonymResponse> |
||
</soap:Body> |
</soap:Body> |
Versie van 12 feb 2018 11:50
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-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>