Page History
...
<hostnavn>:8080/stamdata-batch-copy-ws-rfs/service/StamdataReplication?wsdl
3.
...
4.1 Eksempel på kald til KRS
Som klient sender man et ReplicationRequest til servicen.
...
<offset>0</offset>
</ns1:ReplicationRequest>
</S:Body>
</S:Envelope>
Headeren skal indeholde en DGWS 1.0.1 header.
Bemærk at registerVersion-parameteren er frivillig. Hvis den udelades, svarer det til angive værdien 1.
Hvis alt går som forventet og forespørgslen bliver godkendt modtages et svar:
Svar:
<?xml version="1.0" encoding="UTF-8"?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Header>
…
</S:Header>
<S:Body>
<ns1:ReplicationResponse xmlns:ns1="http://nsi.dk/2011/10/21/StamdataKrs/">
<atom:feed xmlns:atom="http://www.w3.org/2005/Atom" xmlns="http://nsi.dk/-/stamdata/3.0/cpr">
<atom:id>tag:nsi.dkersonLookupWithSubscriptionIntegrationTest.java,2011:cpr/person/v1</atom:id>
<atom:updated>2011-10-25T07:02:08.045Z</atom:updated>
<atom:title>Stamdata Registry Feed</atom:title>
<atom:author>
<atom:name>National Sundheds IT</atom:name>
</atom:author>
…
</atom:feed>
</ns1:ReplicationResponse>
</S:Body>
</S:Envelope>
Opstår der derimod en fejl, bliver en DGWS 1.0.1 Fault sendt tilbage, f.eks.:
Fejl:
<soapenv:Envelope ...>
<soapenv:Header>...</soapenv:Header>
<soapenv:Body>
<soapenv:Fault>
<faultcode>Server</faultcode>
<detail>
<medcom:FaultCode>expired_idcard</medcom:FaultCode>
</detail>
<faultstring>The ID card has expired.</faultstring>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
3.4.2 Eksempel på kald til RFS
Som klient sender man et ReplicationRequest til servicen.
Forespørgsel:
<?xml version="1.0" encoding="UTF-8"?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Header>
…
</S:Header>
<S:Body>
<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>
</ns1:ReplicationRequest>
...