OxalisCommunity / oxalis

Oxalis - PEPPOL Access Point open source implementation - Core component
Other
134 stars 92 forks source link

Peppol reporting - Content does not contain SBDH #697

Closed tinhien11 closed 3 weeks ago

tinhien11 commented 3 weeks ago

Hi. I am trying out the TestBed. I can successfully run Oxalis for message reception and submission. However, I am facing issues with message submission reporting for AS4.

version.oxalis.as4: 6.7.0 version.java: 11.0.16 mode: TEST

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

1.0 9922:tin 9922:NGTBCNTRLP1001 urn:fdc:peppol:end-user-statistics-report:1.1::EndUserStatisticsReport 1.1 PSG000680-80-20241108T033715 EndUserStatisticsReport 2024-08-19T08:13:49.821Z COUNTRY_C1 BE urn:fdc:peppol.eu:edec:trns:end-user-statistics-report:1.1 urn:fdc:peppol.eu:edec:bis:reporting:1.0
2022-01-01 2022-01-31 POP000360
0 0 0
` Response: Message failed : Content does not contain SBDH. Any pointers on what I should check? Thanks so much
aaron-kumar commented 3 weeks ago

@tinhien11 Mandatory Process ID (PROCESSID) and Document Type ID (DOCUMENTID) scope are missing in SBDH.

StandardBusinessDocument/StandardBusinessDocumentHeader/BusinessScope/Scope/Type
StandardBusinessDocument/StandardBusinessDocumentHeader/BusinessScope/Scope/InstanceIdentifier
StandardBusinessDocument/StandardBusinessDocumentHeader/BusinessScope/Scope/Identifier

Example:

            <Scope>
                <Type>DOCUMENTID</Type>
                <InstanceIdentifier>urn:fdc:peppol:end-user-statistics-report:1.1::EndUserStatisticsReport##urn:fdc:peppol.eu:edec:trns:end-user-statistics-report:1.1::1.1</InstanceIdentifier>
                <Identifier>busdox-docid-qns</Identifier>
            </Scope>
            <Scope>
                <Type>PROCESSID</Type>
                <InstanceIdentifier>urn:fdc:peppol.eu:edec:bis:reporting:1.0</InstanceIdentifier>
                <Identifier>cenbii-procid-ubl</Identifier>
            </Scope>
tinhien11 commented 3 weeks ago

It works perfectly. Thank you very much!