Page History
...
| Code Block | ||
|---|---|---|
| ||
<?xml version="1.0" encoding="UTF-8"?>
<ns2:Envelope xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns3="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:ns4="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:ns5="http://www.w3.org/2000/09/xmldsig#" xmlns:ns6="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:ns7="http://www.medcom.dk/dgws/2006/04/dgws-1.0.xsd" xmlns:ns8="http://www.nsi.dk/2012/12/nas/idlist">
<ns2:Header>
<!-- DGWS headers -->
</ns2:Header>
<ns2:Body>
<ns8:DestroyIDListResponse>
<ns8:NoSuchList>false</ns8:NoSuchList>
</ns8:DestroyIDListResponse>
</ns2:Body>
</ns2:Envelope>
|
Spole subscription tilbage
NAS-SM-3: Spol subscription tilbage |
|---|
| Som et eksternt system ønsker jeg at spole en given subscription tilbage til et givent tidspunkt. |
Hvis et anvender system får brug at hente allerede afhentede notifikationer igen er det muligt at spole en given subscription tilbage til et givent tidspunkt. Det kan f.eks. være nødvendigt hvis en anvender har mistet data. NAS gemmer med jævne mellemrum hvor langt alle subscriptions er nået og der spoles tilbage til et tidspunkt umiddelbart før det ønskede tidspunkt.
Bemærk at der ikke kan spoles tilbage til et tidspunkt hvor data ikke længere er tilgængelige i NAS. Forsøger man alligevel får man returneret en fejl med mindste mulige tidspunkt. Selvom man spoler tilbage til det tidligst mulige tidspunkt så er der stadig risiko for at man ikke kan hente data da data kan være blevet slettet i det tidsrum man kalder RewinSubscription servicen og man kalder GetMessages.
Snitflade
Dette er operationen RewindSubscription på RewindSubscriptionServicen der kaldes. Servicen den udstilles af SubscriptionManager servicen. Dette er ikke en del af WS-Notification.
Request består af nedenstående.
| RewindSubscription | |||
| Element | Krævet | Anvendt | Beskrivelse |
|---|---|---|---|
| SubscriptionId | Ja | Ja | Den subscription der ønskes spolet tilbage. |
| RewindDate | Ja | Ja | Dato der ønskes spolet tilbage til. Der spoles tilbage til et tidspunkt umiddelbart før dette tidspunkt. Præcis dato der er spolet tilbage til returneres i svaret. |
Response består af nedenstående.
| RewindSubsriptionResponse | |||
| Element | Krævet | Anvendt | Beskrivelse |
|---|---|---|---|
| RewindDate | Ja | Ja | Tidspunkt der er spolet tilbage til. |
Request
| Code Block | ||
|---|---|---|
| ||
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:medcom="http://www.medcom.dk/dgws/2006/04/dgws-1.0.xsd" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sosi="http://www.sosi.dk/sosi/2006/04/sosi-1.0.xsd" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wst="http://schemas.xmlsoap.org/ws/2005/02/trust" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Envelope">
<soapenv:Header>
<!-- DGWS headers -->
</soapenv:Header>
<S:Body xmlns="http://www.w3.org/2000/09/xmldsig#"
xmlns:ns2="http://svn.medcom.dk/svn/releases/Standarder/DGWS/Schemas/medcom-1.0.1.xsd"
xmlns:ns3="http://www.sundhedsdatastyrelsen.dk/nas/rewindsubscription/2021/09/07"
xmlns:ns4="urn:oasis:names:tc:SAML:2.0:assertion"
xmlns:ns5="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:ns6="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<ns3:RewindSubscriptionRequest xmlns:ns3="http://www.sundhedsdatastyrelsen.dk/nas/rewindsubscription/2021/09/07">
<ns3:SubscriptionId>http://localhost:8080/subscriptionmanager/service/722a0488-b612-4972-99dd-d056c9049178</ns3:SubscriptionId>
<ns3:RewindDate>2021-09-13T13:49:01.784+02:00</ns3:RewindDate>
</ns3:RewindSubscriptionRequest>
</S:Body>
</soapenv:Envelope> |
Response
| Code Block | ||
|---|---|---|
| ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:Envelope xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns3="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:ns4="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:ns5="http://www.w3.org/2000/09/xmldsig#" xmlns:ns6="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:ns7="http://www.medcom.dk/dgws/2006/04/dgws-1.0.xsd" xmlns:ns8="http://www.w3.org/2005/08/addressing" xmlns:ns9="http://docs.oasis-open.org/wsn/b-2" xmlns:ns10="http://docs.oasis-open.org/wsrf/bf-2" xmlns:ns11="http://docs.oasis-open.org/wsrf/rp-2" xmlns:ns12="http://docs.oasis-open.org/wsn/t-1" xmlns:ns13="http://nsi.dk/advis/v10" xmlns:ns14="http://www.sundhedsdatastyrelsen.dk/nas/rewindsubscription/2021/09/07">
<ns2:Header>
<!-- DGWS headers -->
</ns2:Header>
<ns2:Body>
<ns14:RewindSubscriptionResponse>
<ns14:RewindDate>2021-09-13T13:49:01.089+02:00</ns14:RewindDate>
</ns14:RewindSubscriptionResponse>
</ns2:Body>
</ns2:Envelope> |
Ofte stillede spørgsmål
Hvordan håndterer jeg ID-lister med mange ID'er?
...