Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

<hostnavn>:8080/stamdata-batch-copy-ws-rfs/service/StamdataReplication?wsdl


Service til kald af rfs med som kan benyttet filter:
<hostnavn>:8080/stamdata-batch-copy-ws-rfs/service/StamdataReplication-20240227

og wsdl kan hentes ved at sætte ?wsdl efter, altså:

<hostnavn>:8080/stamdata-batch-copy-ws-rfs/service/StamdataReplication-20240227?wsdl

3.4.1     Eksempel på kald til KRS

...

Som klient sender man et ReplicationRequest til servicen.


Forespørgsel:

                           

<?xml version="1.0" encoding="UTF-8"?>

...

    <ns1:ReplicationRequest xmlns:ns1="http://nsi.dk/2021/03/03/StamdataRfs/">
        <register>cpr</register>
       <datatype>person</datatype>
       <version>1</version>
       <registerVersion>1</registerVersion>
       <idList>
           <id>1112579876</id>
           <id>2211657418</id>
       </idList>
       <filter>filter 1</filter>
   </ns1:ReplicationRequest>

...

Headeren skal indeholde en DGWS 1.0.1 header.

...

.1 header.

Hvis filter er angivet vil response der blive filteret felter fra svaret. Hvis intet filter angivet svaret det samme som for KRS, og vil gerfor ikke blive gennemgået igen.

Strukturen af faults er den samme som for KRS, og vil gerfor ikke blive gennemgået igen.

3.4.3     Eksempel på svar ved brug af et filter til RFS

<?xml version="1.0" encoding="UTF-8"?>
<atom:feed xmlns:atom="http://www.w3.org/2005/Atom" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns2="http://www.medcom.dk/dgws/2006/04/dgws-1.0.xsd" xmlns:ns3="http://www.w3.org/2000/09/xmldsig#" 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:ns7="http://nsi.dk/2024/02/27/StamdataRfs/">
    <atom:id>tag:nsi.dk,2011:cpr/person/v1</atom:id>
    <atom:updated>2024-04-23T12:55:05.129Z</atom:updated>
    <atom:title>Stamdata Registry Feed</atom:title>
    <atom:author>
        <atom:name>National Sundheds IT</atom:name>
    </atom:author>
    <atom:entry>
        <atom:id>tag:nsi.dk,2011:cpr/person/v1/17136504000000005006</atom:id>
        <atom:title/>
        <atom:updated>2024-04-20T22:00:00.000Z</atom:updated>
        <atom:content type="application/xml">
            <person:person xmlns="http://nsi.dk/-/stamdata/3.0/cpr" xmlns:person="http://nsi.dk/-/stamdata/3.0/cpr">
                <cpr>0102451234</cpr>
                <koen>M</koen>
                <fornavn>Peter</fornavn>
                <mellemnavn>Sigurd</mellemnavn>
            </person:person>
        </atom:content>
    </atom:entry>
</atom:feed>

3.5     Detaljeret svar fra KRS

...

<?xml version="1.0" encoding="UTF-8" ?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/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: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>
                ...
    </soapenv:Header>
    <soapenv:Body>
        <ns3:FilterNewRequestType FilterDeleteRequestType xmlns:ns3="http://nsi.dk/2024/04/03/StamdataSfm" xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns4="http://www.medcom.dk/dgws/2006/04/dgws-1.0.xsd" xmlns:ns5="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:ns6="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:ns7="http://www.w3.org/2000/09/xmldsig#" xmlns:ns8="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
            <ns3:name>Filter 2<1</ns3:name>
            <ns3:viewPath>vitamin/1/grunddata/1</ns3:viewPath>
            <ns3:DataTypeFieldList>drugID</ns3:DataTypeFieldList>
            <ns3:DataTypeFieldList>varetype</ns3:DataTypeFieldList>
            <ns3:DataTypeFieldList>varedeltype</ns3:DataTypeFieldList>
            <ns3:DataTypeFieldList>alfabetSekvensplads</ns3:DataTypeFieldList>
        </ns3:FilterNewRequestType>FilterDeleteRequestType>
    </soapenv:Body>
</soapenv:Envelope>

...