Skip to content
RaspConfiguration.Test.xml 287 KiB
Newer Older
<?xml version="1.0" encoding="utf-8"?>
<RaspConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://oiosi.dk/rasp/xml/2007/04/01/">

    <ConfigurationSection xsi:type="StartupConfig">
        <StartupTasks>
            <StartupTask>
                <ImplementationNamespaceClass>dk.gov.oiosi.common.startup.SchematronPreloadStartupTask
                </ImplementationNamespaceClass>
                <ConfigurationList>
                    <Configuration>
                        <Name>initDocumentTypeFriendlyName</Name>
                        <Value>Faktura</Value>
                    </Configuration>
                    <Configuration>
                        <Name>initDocumentTypeFriendlyName</Name>
                        <Value>Kreditnota</Value>
                    </Configuration>
                </ConfigurationList>
            </StartupTask>
            <StartupTask>
                <!--
                    Next startup task has sense only if CRL revocation is configured in configuration section RevocationLookupFactoryConfig (non-OCSP).
                    But even if it is OCSP lookup, it will not download any CRL lists, just write warning message into logs.
                    To provide customers example of configuration, this block is not commented.
                 -->
                <ImplementationNamespaceClass>dk.gov.oiosi.common.startup.DownloadCRLStartupTask
                </ImplementationNamespaceClass>
                <ConfigurationList>
                    <!-- CRL URL of usual OCES certificates, which were used before OIORASP 1.3.0 -->
                    <!--<Configuration>-->
                    <!--<Name>downloadCrlUrl</Name>-->
                    <!--<Value>http://crl.oces.certifikat.dk/oces.crl</Value>-->
                    <!--</Configuration>-->
                    <!-- CRL URL of OCES2 certificates from DanID, provided for testing -->
                    <Configuration>
                        <Name>downloadCrlUrl</Name>
                        <Value>http://crl.systemtest8.trust2408.com/systemtest8.crl</Value>
                    </Configuration>
                    <!-- CRL URL of OCES2 certificates from DanID, provided for testing -->
                    <Configuration>
                        <Name>downloadCrlUrl</Name>
                        <Value>http://crl.systemtest7.trust2408.com/systemtest7.crl</Value>
                    </Configuration>
                </ConfigurationList>
            </StartupTask>
            <StartupTask>
                <ImplementationNamespaceClass>dk.gov.oiosi.common.startup.StartCacheStateLogScheduledJobStartupTask
                </ImplementationNamespaceClass>
                <ConfigurationList>
                    <Configuration>
                        <Name>scheduleJobRunInterval</Name>
                        <Value>30</Value>
                    </Configuration>
                    <Configuration>
                        <Name>scheduleJobRunIntervalTimeUnit</Name>
                        <Value>SECONDS</Value>
                    </Configuration>
                </ConfigurationList>
            </StartupTask>
        </StartupTasks>
    </ConfigurationSection>

    <ConfigurationSection xsi:type="DocumentTypeCollectionConfig">
        <DocumentTypes>
            <DocumentTypeConfig>
                <Id>5a15a880-eef8-40c0-80f2-bb65226f50c2</Id>
                <FriendlyName>Faktura v0.7</FriendlyName>
                <RootNamespace>http://rep.oio.dk/ubl/xml/schemas/0p71/pie/</RootNamespace>
                <RootName>Invoice</RootName>
                <IdentifierDiscriminators/>
                <ServiceContractTModel>uddi:bc99bb01-80f9-4f52-89dc-edf7732c56f9</ServiceContractTModel>
                <SchemaPath>common/Resources/Schemas/OIOXML_v0.7/pieStrict.xsd</SchemaPath>
                <StylesheetPath>common/Resources/UI/OIOXML_v0.7/StyleSheets/html.xsl</StylesheetPath>
                <Namespaces>
                    <PrefixedNamespace>
                        <Namespace>http://rep.oio.dk/ubl/xml/schemas/0p71/common/</Namespace>
                        <Prefix>com</Prefix>
                    </PrefixedNamespace>
                    <PrefixedNamespace>
                        <Namespace>http://rep.oio.dk/ubl/xml/schemas/0p71/maindoc/</Namespace>
                        <Prefix>main</Prefix>
                    </PrefixedNamespace>
                    <PrefixedNamespace>
                        <Namespace>http://rep.oio.dk/ubl/xml/schemas/0p71/pie/</Namespace>
                        <Prefix>root</Prefix>
                    </PrefixedNamespace>
                </Namespaces>
                <EndpointType>
                    <RequestAction>
                        http://rep.oio.dk/oiosi.ehandel.gov.dk/xml/schemas/2007/09/01/Invoice07Interface/SubmitInvoice07Request
                    </RequestAction>
                    <ReplyAction>
                        http://rep.oio.dk/oiosi.ehandel.gov.dk/xml/schemas/2007/09/01/Invoice07Interface/SubmitInvoice07Response
                    </ReplyAction>
                    <EndpointFriendlyName>
                        <XPath>/root:Invoice/com:BuyerParty/com:PartyName[count(../../com:BuyerParty)=1 or
                            translate(../com:Address/com:ID, 'FAKTUREING', 'faktureing') ='faktura' or
                            translate(../com:Address/com:ID, 'FAKTUREING', 'faktureing') ='fakturering']/com:Name
                        </XPath>
                    </EndpointFriendlyName>
                    <SenderFriendlyName>
                        <XPath>/root:Invoice/com:SellerParty/com:PartyName/com:Name</XPath>
                    </SenderFriendlyName>
                    <Key>
                        <Xpath>/root:Invoice/com:BuyersReferenceID</Xpath>
                        <MappingExpressions>
                            <KeyTypeMappingExpressions>
                                <Name>EndpointKeyType</Name>
                                <XPathExpression>/root:Invoice/com:BuyersReferenceID/@schemeID</XPathExpression>
                                <Mappings>
                                    <!-- For backward compatibility when sending to RASP Java 2.0.x endpoints, 6 old mappings are essential to keep in relation to OIOUBL -->
                                    <Mapping>
                                        <Value>GLN</Value>
                                        <MapsTo>ean</MapsTo>
                                    </Mapping>
                                    <Mapping>
                                        <Value>DK:CVR</Value>
                                        <MapsTo>cvr</MapsTo>
                                    </Mapping>
                                    <Mapping>
                                        <Value>DK:CPR</Value>
                                        <MapsTo>cpr</MapsTo>
                                    </Mapping>
                                    <Mapping>
                                        <Value>DK:P</Value>
                                        <MapsTo>p</MapsTo>
                                    </Mapping>
                                    <Mapping>
                                        <Value>DK:SE</Value>
                                        <MapsTo>se</MapsTo>
                                    </Mapping>
                                    <Mapping>
                                        <Value>DK:VANS</Value>
                                        <MapsTo>vans</MapsTo>
                                    </Mapping>
                                </Mappings>
                            </KeyTypeMappingExpressions>
                        </MappingExpressions>
                    </Key>
                    <SenderKey>
                        <Xpath>/root:Invoice/com:SellerParty/com:ID</Xpath>
                        <MappingExpressions>
                            <KeyTypeMappingExpressions>
                                <Name>EndpointKeyType</Name>
                                <XPathExpression>/root:Invoice/com:SellerParty/com:ID/@schemeID</XPathExpression>
                                <Mappings>
                                    <Mapping>
                                        <Value>GLN</Value>
                                        <MapsTo>ean</MapsTo>
                                    </Mapping>
                                    <Mapping>
                                        <Value>DK:CVR</Value>
                                        <MapsTo>cvr</MapsTo>
                                    </Mapping>
                                    <Mapping>
                                        <Value>DK:CPR</Value>
                                        <MapsTo>cpr</MapsTo>
                                    </Mapping>
                                    <Mapping>
                                        <Value>DK:P</Value>
                                        <MapsTo>p</MapsTo>
                                    </Mapping>
                                    <Mapping>
                                        <Value>DK:SE</Value>
                                        <MapsTo>se</MapsTo>
                                    </Mapping>
                                    <Mapping>
                                        <Value>DK:VANS</Value>
                                        <MapsTo>vans</MapsTo>
                                    </Mapping>
                                </Mappings>
                            </KeyTypeMappingExpressions>
                        </MappingExpressions>
                    </SenderKey>
                </EndpointType>
                <XsltTransformStylesheetPath/>
                <SchematronValidationConfigs>
                    <SchematronValidationConfig>
                        <SchematronDocumentPath>common/Resources/Schematrons/OIOXML_v0.7/ublinvoice.xsl
                        </SchematronDocumentPath>
                        <ErrorXPath>/schematron/error</ErrorXPath>
                        <ErrorMessageXPath>/schematron/error</ErrorMessageXPath>
                    </SchematronValidationConfig>
                </SchematronValidationConfigs>
                <CustomHeaderConfiguration>
                    <XPaths/>
                </CustomHeaderConfiguration>
                <ProfileIdXPath>
                    <XPath>string('OIOXML elektronisk handel')</XPath>
                </ProfileIdXPath>
                <DocumentIdXPath>
                    <XPath>/root:Invoice/com:ID</XPath>
                </DocumentIdXPath>
            </DocumentTypeConfig>
            <DocumentTypeConfig>
                <Id>7bd520d7-6ae5-4a3c-8604-082e69414092</Id>
                <FriendlyName>Kreditnota v0.7</FriendlyName>
                <RootNamespace>http://rep.oio.dk/ubl/xml/schemas/0p71/pcm/</RootNamespace>
                <RootName>Invoice</RootName>
                <IdentifierDiscriminators/>
Loading full blame...