SID:SampleReplaceStempseudonym: verschil tussen versies

Uit Kennisnet Developers Documentatie
Naar navigatie springen Naar zoeken springen
(Wijzigingen n.a.v. laatste release)
(Wijzigingen n.a.v. laatste release)
 
Regel 57: Regel 57:
   
 
<syntaxhighlight lang="xml" line highlight="25">
 
<syntaxhighlight lang="xml" line highlight="25">
POST https://service-t.id.school/eck/ws/201703/ HTTP/1.1
+
POST https://service-s.ketenid.nl/eck/ws/201703 HTTP/1.1
 
Accept-Encoding: gzip,deflate
 
Accept-Encoding: gzip,deflate
 
Content-Type: text/xml;charset=UTF-8
 
Content-Type: text/xml;charset=UTF-8
SOAPAction: "http://id.school/eck/schemas/v1_0/retrieveStampseudonym"
+
SOAPAction: "http://ketenid.nl/eck/schemas/v1_0/retrieveStampseudonym"
Content-Length: 768
+
Content-Length: 1031
Host: service-t.id.school
+
Host: service-s.ketenid.nl
 
Connection: Keep-Alive
 
Connection: Keep-Alive
 
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
 
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
   
<soapenv:Envelope
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/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">
  +
<soapenv:Header>
xmlns:v1="http://id.school/eck/schemas/v1_0">
 
 
<a:Action soapenv:mustUnderstand="1">http://ketenid.nl/eck/schemas/v1_0/retrieveStampseudonym</a:Action>
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
 
 
<a:MessageID>urn:uuid:a61d7a7d-cd0c-4b41-9b14-fa86a5391e08</a:MessageID>
<wsa:Action>http://id.school/eck/schemas/v1_0/retrieveStampseudonym</wsa:Action>
 
 
<a:To soapenv:mustUnderstand="1">https://service-s.ketenid.nl/eck/ws/201703</a:To>
<wsa:From>
 
  +
<a:From a:IsReferenceParameter="true">
<wsa:Address>
 
http://www.w3.org/2005/08/addressing/anonymous?oin=0000000700019HY34567
+
<a:Address>http://www.w3.org/2005/08/addressing/anonymous?oin=0000000700019HY34567</a:Address>
</wsa:Address>
+
</a:From>
  +
<a:ReplyTo a:IsReferenceParameter="true">
</wsa:From>
 
 
<a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
<wsa:MessageID>uuid:8d9076aa-6b39-437b-91a9-e6d250ff8eeb</wsa:MessageID>
 
 
</a:ReplyTo>
<wsa:To>https://service-t.id.school/eck/ws/201703/</wsa:To>
 
 
</soapenv:Header>
 
</soapenv:Header>
 
<soapenv:Body>
 
<soapenv:Body>
Regel 84: Regel 84:
 
</v1:retrieveStampseudonymRequest>
 
</v1:retrieveStampseudonymRequest>
 
</soapenv:Body>
 
</soapenv:Body>
</soapevn:Envelope>
+
</soapenv:Envelope>
 
</syntaxhighlight>
 
</syntaxhighlight>
   
 
Gets the response:
 
Gets the response:
   
<syntaxhighlight lang="xml" line highlight="20-27">
+
<syntaxhighlight lang="xml" line highlight="13-18">
 
<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/retrieveStampseudonym/Fault/SOAPFaultException</Action>
 
<MessageID xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:22f85e55-11c1-4c48-b293-ac3db4098632</MessageID>
http://id.school/eck/schemas/v1_0/SchoolID/retrieveStampseudonym/Fault/SOAPFaultException
 
 
<To xmlns="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/addressing/anonymous?oin=0000000700019HY34567</To>
</Action>
 
<MessageID xmlns="http://www.w3.org/2005/08/addressing">
+
<RelatesTo xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:a61d7a7d-cd0c-4b41-9b14-fa86a5391e08</RelatesTo>
urn:uuid:7fe9e263-2e25-443a-8ee0-2c3f4d4560be
 
</MessageID>
 
<To xmlns="http://www.w3.org/2005/08/addressing">
 
http://www.w3.org/2005/08/addressing/anonymous?oin=0000000700019HY34567
 
</To>
 
<RelatesTo xmlns="http://www.w3.org/2005/08/addressing">
 
uuid:8d9076aa-6b39-437b-91a9-e6d250ff8eeb
 
</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>

Huidige versie van 12 feb 2018 om 11:52

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>