Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Version 2.2.1

...

Code Block
languagexml
titleEksempel på et GCTP svar fra servicen.
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<root xmlns="http://www.cpr.dk">
    <Gctp v="2.0" env="Udvikling">
        <System r="CprAjour">
            <Service r="PNRABN-I">
                <CprServiceHeader r="PNRABN-I" ts="2024100215104064457120241007103148796068" st="P" a="I">
                    <Table r="Aktioner">
                        <Row>
                            <Field r="KODE" v="V" t="Validering"/>
                        </Row>
                        <Row>
                            <Field r="KODE" v="F" t="Fortryd"/>
                        </Row>
                        <Row>
                            <Field r="KODE" v="G" t="Gem"/>
                        </Row>
                    </Table>
                </CprServiceHeader>
                <CprData u="O">
                    <Rolle r="HovedRolle">
                        <Praes r=""/>
                    </Rolle>
                </CprData>
                <CprData u="I">
                    <Rolle r="HovedRolle">
                        <Table r="Pnrabonnement offpriv">
                            <Row u="M">
                                <Field r="CBRU_NGLKONST"/>
                                <Field r="CBRU_PNR"/>
                                <Field r="CBRU_SLETSAETMRK"/>
                                <Field r="CBRU_KVITNR"/>
                                <Field r="CBRU_KVIT_TXT"/>
                            </Row>
                            <Row k="[ROW KEY]">
                                <Field r="CBRU_NGLKONST" v="[DATA]"/>
                                <Field r="CBRU_PNR" v="[DATA]"/>
                                <Field r="CBRU_SLETSAETMRK" v="[DATA]"/>
                                <Field r="CBRU_KVITNR" v="[DATA]"/>
                                <Field r="CBRU_KVIT_TXT" v="[DATA]"/>
                            </Row>
                        </Table>
                    </Rolle>
                </CprData>
                <Kvit r="Ok" v="0"/>
            </Service>
        </System>
    </Gctp>
</root>

...

Code Block
languagexml
titleEksempel på et GCTP valideringskald til servicen.
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<root xmlns="http://www.cpr.dk">
    <Gctp v="2.0" env="Udvikling">
        <System r="CprAjour">
            <Service r="PNRABN-I">
                <CprServiceHeader r="PNRABN-I" ts="2024100215104064457120241007103148796068" st="P" mk="1" a="V">
                    <Key>
                        <Field r="KNR" v="[DATA]"/>
                    </Key>
                </CprServiceHeader>
                <CprData u="I">
                    <Rolle r="HovedRolle">
                        <Table r="Pnrabonnement offpriv">
                            <Row u="M">
                                <Field r="CBRU_NGLKONST"/>
                                <Field r="CBRU_PNR"/>
                                <Field r="CBRU_SLETSAETMRK"/>
                                <Field r="CBRU_KVITNR"/>
                                <Field r="CBRU_KVIT_TXT"/>
                            </Row>
                            <Row k="[ROW KEY]">
                                <Field r="CBRU_NGLKONST" v="[DATA]"/>
                                <Field r="CBRU_PNR" v="[DATA]"/>
                                <Field r="CBRU_SLETSAETMRK" v="[DATA]"/>
                                <Field r="CBRU_KVITNR" v="[DATA]"/>
                                <Field r="CBRU_KVIT_TXT" v="[DATA]"/>
                            </Row>
                        </Table>
                    </Rolle>
                </CprData>
            </Service>
        </System>
    </Gctp>
</root>
Code Block
languagexml
titleEksempel på et GCTP svar med fejl fra servicen.
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<root xmlns="http://www.cpr.dk">
    <Gctp v="2.0" env="Udvikling">
        <System r="CprAjour">
            <Service r="PNRABN-I">
                <CprServiceHeader r="PNRABN-I" ts="2024100215104064457120241007103148796068" st="P" mk="1" a="V">
                    <Key>
                        <Field r="KNR" v="[DATA]"/>
                    </Key>
                </CprServiceHeader>
                <CprData u="O">
                    <Rolle r="HovedRolle">
                        <Praes r=""/>
                    </Rolle>
                </CprData>
                <CprData u="I">
                    <Rolle r="HovedRolle">
                        <Table r="Pnrabonnement offpriv">
                            <Row u="M">
                                <Field r="CBRU_NGLKONST"/>
                                <Field r="CBRU_PNR"/>
                                <Field r="CBRU_SLETSAETMRK"/>
                                <Field r="CBRU_KVITNR"/>
                                <Field r="CBRU_KVIT_TXT"/>
                            </Row>
                            <Row k="[ROW KEY]">
                                <Field r="CBRU_NGLKONST" v="[DATA]"/>
                                <Field r="CBRU_PNR" v="[DATA]"/>
                                <Field r="CBRU_SLETSAETMRK" v="[DATA]"/>
                                <Field r="CBRU_KVITNR" v="[DATA]"/>
                                <Field r="CBRU_KVIT_TXT" v="[DATA]"/>
                            </Row>
                        </Table>
                    </Rolle>
                </CprData>
                <Kvit r="Fejl" t="[FEJLTEKST TIL FEJLKODE 42]" v="42"/>
            </Service>
        </System>
    </Gctp>
</root>

...

Code Block
languagexml
titleEksempel på et GCTP gem-kald til servicen.
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<root xmlns="http://www.cpr.dk">
    <Gctp v="2.0" env="Udvikling">
        <System r="CprAjour">
            <Service r="PNRABN-I">
                <CprServiceHeader r="PNRABN-I" ts="2024100215104064457120241007103148796068" st="P" mk="1" a="G">
                    <Key>
                        <Field r="KNR" v="[DATA]"/>
                    </Key>
                </CprServiceHeader>
                <CprData u="I">
                    <Rolle r="HovedRolle">
                        <Table r="Pnrabonnement offpriv">
                            <Row u="M">
                                <Field r="CBRU_NGLKONST"/>
                                <Field r="CBRU_PNR"/>
                                <Field r="CBRU_SLETSAETMRK"/>
                                <Field r="CBRU_KVITNR"/>
                                <Field r="CBRU_KVIT_TXT"/>
                            </Row>
                            <Row k="[ROW KEY]">
                                <Field r="CBRU_NGLKONST" v="[DATA]"/>
                                <Field r="CBRU_PNR" v="[DATA]"/>
                                <Field r="CBRU_SLETSAETMRK" v="[DATA]"/>
                                <Field r="CBRU_KVITNR" v="[DATA]"/>
                                <Field r="CBRU_KVIT_TXT" v="[DATA]"/>
                            </Row>
                        </Table>
                    </Rolle>
                </CprData>
            </Service>
        </System>
    </Gctp>
</root>
Code Block
languagexml
titleEksempel på et GCTP svar fra servicen.
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<root xmlns="http://www.cpr.dk">
    <Gctp v="2.0" env="Udvikling">
        <System r="CprAjour">
            <Service r="PNRABN-I">
                <CprServiceHeader r="PNRABN-I" ts="2024100215104064457120241007103148796068" st="P" mk="1" a="G"/>
                <Kvit r="Afslut" v="0">
                    <Table r="AFSLUT">
                        <Row k="[ROW KEY]"/>
                    </Table>
                </Kvit>
            </Service>
        </System>
    </Gctp>
</root>

v2.2.01