OxalisCommunity / Oxalis-AS4

PEPPOL AS4 pMode plugin for Oxalis
32 stars 26 forks source link

Hitting issue while sending xml message to oxalis-as4 access point using postman #259

Closed evanswappf closed 3 weeks ago

evanswappf commented 1 month ago

Hi I'm hitting this issue while sending message to oxalis-as4 access point. can anyone helping on this? I attached my message xml below. Thanks Best regards.

Sep 23, 2024 3:15:13 AM org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging
WARNING: Interceptor for has thrown exception, unwinding now
org.apache.cxf.binding.soap.SoapFault: "http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader", the namespace on the "StandardBusinessDocument" element, is not a valid SOAP version.
        at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.readVersion(ReadHeadersInterceptor.java:132)
        at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:175)
        at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:70)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
        at org.apache.cxf.transport.MultipleEndpointObserver.onMessage(MultipleEndpointObserver.java:98)
        at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265)
        at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234)
        at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208)
        at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160)
        at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:225)
        at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:304)
        at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:217)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:523)
        at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:279)
        at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:290)
        at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:280)
        at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:184)
        at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:89)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)
        at io.opentracing.contrib.web.servlet.filter.TracingFilter.doFilter(TracingFilter.java:189)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
        at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:121)
        at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:133)
        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:527)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1384)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:484)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1306)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129)
        at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:51)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)
        at org.eclipse.jetty.server.Server.handle(Server.java:563)
        at org.eclipse.jetty.server.HttpChannel$RequestDispatchable.dispatch(HttpChannel.java:1598)
        at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:753)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:501)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:282)
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:314)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100)
        at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:969)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1194)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1149)
        at java.base/java.lang.Thread.run(Unknown Source)
<StandardBusinessDocument
            xmlns="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader">
            <StandardBusinessDocumentHeader>
                <HeaderVersion>1.0</HeaderVersion>
                <Sender>
                    <Identifier Authority="iso6523-actorid-upis">0230:051312314</Identifier>
                </Sender>
                <Receiver>
                    <Identifier Authority="iso6523-actorid-upis">9922:NGTBCNTRLP1001</Identifier>
                </Receiver>
                <DocumentIdentification>
                    <Standard>urn:oasis:names:specification:ubl:schema:xsd:Invoice-2</Standard>
                    <TypeVersion>2.1</TypeVersion>
                    <InstanceIdentifier>PMY000676-36-20240923T025948</InstanceIdentifier>
                    <Type>Invoice</Type>
                    <CreationDateAndTime>2023-12-19T11:00:55.110+02:00</CreationDateAndTime>
                </DocumentIdentification>
                <BusinessScope>
                    <Scope>
                        <Type>DOCUMENTID</Type>
                        <InstanceIdentifier>
                            busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##urn:peppol:pint:billing-1@my-1::2.1</InstanceIdentifier>
                        <Identifier>busdox-docid-qns</Identifier>
                    </Scope>
                    <Scope>
                        <Type>PROCESSID</Type>
                        <InstanceIdentifier>urn:peppol:bis:billing</InstanceIdentifier>
                        <Identifier>cenbii-procid-ubl</Identifier>
                    </Scope>
                    <Scope>
                        <Type>COUNTRY_C1</Type>
                        <InstanceIdentifier>MY</InstanceIdentifier>
                    </Scope>
                </BusinessScope>
            </StandardBusinessDocumentHeader>
            <Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
                xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
                xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
                <cbc:CustomizationID>
                    urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>
                <cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>
                <cbc:ID>PMY000676-36-20240923T025948</cbc:ID>
                <cbc:IssueDate>2023-12-19</cbc:IssueDate>
                <cbc:DueDate>2024-01-18</cbc:DueDate>
                <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
                <cbc:Note>GalaxyGateway hosted AP BIS3 Billing Test file</cbc:Note>
                <cbc:TaxPointDate>2023-12-19</cbc:TaxPointDate>
                <cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
                <cbc:TaxCurrencyCode>SEK</cbc:TaxCurrencyCode>
                <cbc:AccountingCost>4025:123:4343</cbc:AccountingCost>
                <cbc:BuyerReference>0150abc</cbc:BuyerReference>
                <cac:InvoicePeriod>
                    <cbc:StartDate>2023-11-01</cbc:StartDate>
                    <cbc:EndDate>2032-12-31</cbc:EndDate>
                </cac:InvoicePeriod>
                <cac:ContractDocumentReference>
                    <cbc:ID>framework no 1</cbc:ID>
                </cac:ContractDocumentReference>
                <cac:AdditionalDocumentReference>
                    <cbc:ID schemeID="ABT">DR35141</cbc:ID>
                    <cbc:DocumentTypeCode>130</cbc:DocumentTypeCode>
                </cac:AdditionalDocumentReference>
                <cac:AdditionalDocumentReference>
                    <cbc:ID>ts12345</cbc:ID>
                    <cbc:DocumentDescription>Technical specification</cbc:DocumentDescription>
                    <cac:Attachment>
                        <cac:ExternalReference>
                            <cbc:URI>www.techspec.no</cbc:URI>
                        </cac:ExternalReference>
                    </cac:Attachment>
                </cac:AdditionalDocumentReference>
                <cac:AccountingSupplierParty>
                    <cac:Party>
                        <cbc:EndpointID schemeID="0088">9999993010</cbc:EndpointID>
                        <cac:PartyIdentification>
                            <cbc:ID>99887766</cbc:ID>
                        </cac:PartyIdentification>
                        <cac:PartyName>
                            <cbc:Name>SupplierTradingName Ltd.</cbc:Name>
                        </cac:PartyName>
                        <cac:PostalAddress>
                            <cbc:StreetName>Main street 1</cbc:StreetName>
                            <cbc:AdditionalStreetName>Postbox 123</cbc:AdditionalStreetName>
                            <cbc:CityName>London</cbc:CityName>
                            <cbc:PostalZone>GB 123 EW</cbc:PostalZone>
                            <cac:Country>
                                <cbc:IdentificationCode>GB</cbc:IdentificationCode>
                            </cac:Country>
                        </cac:PostalAddress>
                        <cac:PartyTaxScheme>
                            <cbc:CompanyID>GB1232434</cbc:CompanyID>
                            <cac:TaxScheme>
                                <cbc:ID>VAT</cbc:ID>
                            </cac:TaxScheme>
                        </cac:PartyTaxScheme>
                        <cac:PartyLegalEntity>
                            <cbc:RegistrationName>SupplierOfficialName Ltd</cbc:RegistrationName>
                            <cbc:CompanyID>GB983294</cbc:CompanyID>
                            <cbc:CompanyLegalForm>AdditionalLegalInformation</cbc:CompanyLegalForm>
                        </cac:PartyLegalEntity>
                    </cac:Party>
                </cac:AccountingSupplierParty>
                <cac:AccountingCustomerParty>
                    <cac:Party>
                        <cbc:EndpointID schemeID="0007">9999993010</cbc:EndpointID>
                        <cac:PartyIdentification>
                            <cbc:ID schemeID="0007">9999993010</cbc:ID>
                        </cac:PartyIdentification>
                        <cac:PartyName>
                            <cbc:Name>BuyerTradingName AS</cbc:Name>
                        </cac:PartyName>
                        <cac:PostalAddress>
                            <cbc:StreetName>Hovedgatan 32</cbc:StreetName>
                            <cbc:AdditionalStreetName>Po box 878</cbc:AdditionalStreetName>
                            <cbc:CityName>Stockholm</cbc:CityName>
                            <cbc:PostalZone>456 34</cbc:PostalZone>
                            <cbc:CountrySubentity>Södermalm</cbc:CountrySubentity>
                            <cac:Country>
                                <cbc:IdentificationCode>SE</cbc:IdentificationCode>
                            </cac:Country>
                        </cac:PostalAddress>
                        <cac:PartyTaxScheme>
                            <cbc:CompanyID>SE4598375937</cbc:CompanyID>
                            <cac:TaxScheme>
                                <cbc:ID>VAT</cbc:ID>
                            </cac:TaxScheme>
                        </cac:PartyTaxScheme>
                        <cac:PartyLegalEntity>
                            <cbc:RegistrationName>Buyer Official Name</cbc:RegistrationName>
                            <cbc:CompanyID schemeID="0183">39937423947</cbc:CompanyID>
                        </cac:PartyLegalEntity>
                        <cac:Contact>
                            <cbc:Name>Lisa Johnson</cbc:Name>
                            <cbc:Telephone>23434234</cbc:Telephone>
                            <cbc:ElectronicMail>lj@buyer.se</cbc:ElectronicMail>
                        </cac:Contact>
                    </cac:Party>
                </cac:AccountingCustomerParty>
                <cac:Delivery>
                    <cbc:ActualDeliveryDate>2023-12-01</cbc:ActualDeliveryDate>
                    <cac:DeliveryLocation>
                        <cbc:ID schemeID="0088">7300010000001</cbc:ID>
                        <cac:Address>
                            <cbc:StreetName>Delivery street 2</cbc:StreetName>
                            <cbc:AdditionalStreetName>Building 56</cbc:AdditionalStreetName>
                            <cbc:CityName>Stockholm</cbc:CityName>
                            <cbc:PostalZone>21234</cbc:PostalZone>
                            <cbc:CountrySubentity>Södermalm</cbc:CountrySubentity>
                            <cac:AddressLine>
                                <cbc:Line>Gate 15</cbc:Line>
                            </cac:AddressLine>
                            <cac:Country>
                                <cbc:IdentificationCode>SE</cbc:IdentificationCode>
                            </cac:Country>
                        </cac:Address>
                    </cac:DeliveryLocation>
                    <cac:DeliveryParty>
                        <cac:PartyName>
                            <cbc:Name>Delivery party Name</cbc:Name>
                        </cac:PartyName>
                    </cac:DeliveryParty>
                </cac:Delivery>
                <cac:PaymentMeans>
                    <cbc:PaymentMeansCode name="Credit transfer">30</cbc:PaymentMeansCode>
                    <cbc:PaymentID>Snippet1</cbc:PaymentID>
                    <cac:PayeeFinancialAccount>
                        <cbc:ID>IBAN32423940</cbc:ID>
                        <cbc:Name>AccountName</cbc:Name>
                        <cac:FinancialInstitutionBranch>
                            <cbc:ID>BIC324098</cbc:ID>
                        </cac:FinancialInstitutionBranch>
                    </cac:PayeeFinancialAccount>
                </cac:PaymentMeans>
                <cac:PaymentTerms>
                    <cbc:Note>Payment within 10 days, 2% discount</cbc:Note>
                </cac:PaymentTerms>
                <cac:AllowanceCharge>
                    <cbc:ChargeIndicator>true</cbc:ChargeIndicator>
                    <cbc:AllowanceChargeReasonCode>CG</cbc:AllowanceChargeReasonCode>
                    <cbc:AllowanceChargeReason>Cleaning</cbc:AllowanceChargeReason>
                    <cbc:MultiplierFactorNumeric>20</cbc:MultiplierFactorNumeric>
                    <cbc:Amount currencyID="EUR">200</cbc:Amount>
                    <cbc:BaseAmount currencyID="EUR">1000</cbc:BaseAmount>
                    <cac:TaxCategory>
                        <cbc:ID>S</cbc:ID>
                        <cbc:Percent>25</cbc:Percent>
                        <cac:TaxScheme>
                            <cbc:ID>VAT</cbc:ID>
                        </cac:TaxScheme>
                    </cac:TaxCategory>
                </cac:AllowanceCharge>
                <cac:AllowanceCharge>
                    <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
                    <cbc:AllowanceChargeReasonCode>95</cbc:AllowanceChargeReasonCode>
                    <cbc:AllowanceChargeReason>Discount</cbc:AllowanceChargeReason>
                    <cbc:Amount currencyID="EUR">200</cbc:Amount>
                    <cac:TaxCategory>
                        <cbc:ID>S</cbc:ID>
                        <cbc:Percent>25</cbc:Percent>
                        <cac:TaxScheme>
                            <cbc:ID>VAT</cbc:ID>
                        </cac:TaxScheme>
                    </cac:TaxCategory>
                </cac:AllowanceCharge>
                <cac:TaxTotal>
                    <cbc:TaxAmount currencyID="EUR">1225.00</cbc:TaxAmount>
                    <cac:TaxSubtotal>
                        <cbc:TaxableAmount currencyID="EUR">4900.0</cbc:TaxableAmount>
                        <cbc:TaxAmount currencyID="EUR">1225</cbc:TaxAmount>
                        <cac:TaxCategory>
                            <cbc:ID>S</cbc:ID>
                            <cbc:Percent>25</cbc:Percent>
                            <cac:TaxScheme>
                                <cbc:ID>VAT</cbc:ID>
                            </cac:TaxScheme>
                        </cac:TaxCategory>
                    </cac:TaxSubtotal>
                    <cac:TaxSubtotal>
                        <cbc:TaxableAmount currencyID="EUR">1000.0</cbc:TaxableAmount>
                        <cbc:TaxAmount currencyID="EUR">0</cbc:TaxAmount>
                        <cac:TaxCategory>
                            <cbc:ID>E</cbc:ID>
                            <cbc:Percent>0</cbc:Percent>
                            <cbc:TaxExemptionReason>Reason for tax exempt</cbc:TaxExemptionReason>
                            <cac:TaxScheme>
                                <cbc:ID>VAT</cbc:ID>
                            </cac:TaxScheme>
                        </cac:TaxCategory>
                    </cac:TaxSubtotal>
                </cac:TaxTotal>
                <cac:TaxTotal>
                    <cbc:TaxAmount currencyID="SEK">9324.00</cbc:TaxAmount>
                </cac:TaxTotal>
                <cac:LegalMonetaryTotal>
                    <cbc:LineExtensionAmount currencyID="EUR">5900</cbc:LineExtensionAmount>
                    <cbc:TaxExclusiveAmount currencyID="EUR">5900</cbc:TaxExclusiveAmount>
                    <cbc:TaxInclusiveAmount currencyID="EUR">7125</cbc:TaxInclusiveAmount>
                    <cbc:AllowanceTotalAmount currencyID="EUR">200</cbc:AllowanceTotalAmount>
                    <cbc:ChargeTotalAmount currencyID="EUR">200</cbc:ChargeTotalAmount>
                    <cbc:PrepaidAmount currencyID="EUR">1000</cbc:PrepaidAmount>
                    <cbc:PayableAmount currencyID="EUR">6125.00</cbc:PayableAmount>
                </cac:LegalMonetaryTotal>
                <cac:InvoiceLine>
                    <cbc:ID>1</cbc:ID>
                    <cbc:Note>Testing note on line level</cbc:Note>
                    <cbc:InvoicedQuantity unitCode="C62">10</cbc:InvoicedQuantity>
                    <cbc:LineExtensionAmount currencyID="EUR">4000.00</cbc:LineExtensionAmount>
                    <cbc:AccountingCost>Konteringsstreng</cbc:AccountingCost>
                    <cac:AllowanceCharge>
                        <cbc:ChargeIndicator>true</cbc:ChargeIndicator>
                        <cbc:AllowanceChargeReasonCode>CG</cbc:AllowanceChargeReasonCode>
                        <cbc:AllowanceChargeReason>Cleaning</cbc:AllowanceChargeReason>
                        <cbc:MultiplierFactorNumeric>1</cbc:MultiplierFactorNumeric>
                        <cbc:Amount currencyID="EUR">1</cbc:Amount>
                        <cbc:BaseAmount currencyID="EUR">100</cbc:BaseAmount>
                    </cac:AllowanceCharge>
                    <cac:AllowanceCharge>
                        <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
                        <cbc:AllowanceChargeReasonCode>95</cbc:AllowanceChargeReasonCode>
                        <cbc:AllowanceChargeReason>Discount</cbc:AllowanceChargeReason>
                        <cbc:Amount currencyID="EUR">101</cbc:Amount>
                    </cac:AllowanceCharge>
                    <cac:Item>
                        <cbc:Description>Description of item</cbc:Description>
                        <cbc:Name>item name</cbc:Name>
                        <cac:SellersItemIdentification>
                            <cbc:ID>97iugug876</cbc:ID>
                        </cac:SellersItemIdentification>
                        <cac:OriginCountry>
                            <cbc:IdentificationCode>NO</cbc:IdentificationCode>
                        </cac:OriginCountry>
                        <cac:CommodityClassification>
                            <cbc:ItemClassificationCode listID="SRV">09348023</cbc:ItemClassificationCode>
                        </cac:CommodityClassification>
                        <cac:ClassifiedTaxCategory>
                            <cbc:ID>S</cbc:ID>
                            <cbc:Percent>25.0</cbc:Percent>
                            <cac:TaxScheme>
                                <cbc:ID>VAT</cbc:ID>
                            </cac:TaxScheme>
                        </cac:ClassifiedTaxCategory>
                    </cac:Item>
                    <cac:Price>
                        <cbc:PriceAmount currencyID="EUR">410</cbc:PriceAmount>
                        <cbc:BaseQuantity unitCode="C62">1</cbc:BaseQuantity>
                        <cac:AllowanceCharge>
                            <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
                            <cbc:Amount currencyID="EUR">40</cbc:Amount>
                            <cbc:BaseAmount currencyID="EUR">450</cbc:BaseAmount>
                        </cac:AllowanceCharge>
                    </cac:Price>
                </cac:InvoiceLine>
                <cac:InvoiceLine>
                    <cbc:ID>2</cbc:ID>
                    <cbc:Note>Testing note on line level</cbc:Note>
                    <cbc:InvoicedQuantity unitCode="C62">10</cbc:InvoicedQuantity>
                    <cbc:LineExtensionAmount currencyID="EUR">1000.00</cbc:LineExtensionAmount>
                    <cbc:AccountingCost>AccountString</cbc:AccountingCost>
                    <cac:InvoicePeriod>
                        <cbc:StartDate>2023-12-01</cbc:StartDate>
                        <cbc:EndDate>2032-12-05</cbc:EndDate>
                    </cac:InvoicePeriod>
                    <cac:OrderLineReference>
                        <cbc:LineID>124</cbc:LineID>
                    </cac:OrderLineReference>
                    <cac:Item>
                        <cbc:Description>Description of item</cbc:Description>
                        <cbc:Name>item name</cbc:Name>
                        <cac:SellersItemIdentification>
                            <cbc:ID>97iugug876</cbc:ID>
                        </cac:SellersItemIdentification>
                        <cac:CommodityClassification>
                            <cbc:ItemClassificationCode listID="SRV">86776</cbc:ItemClassificationCode>
                        </cac:CommodityClassification>
                        <cac:ClassifiedTaxCategory>
                            <cbc:ID>E</cbc:ID>
                            <cbc:Percent>0.0</cbc:Percent>
                            <cac:TaxScheme>
                                <cbc:ID>VAT</cbc:ID>
                            </cac:TaxScheme>
                        </cac:ClassifiedTaxCategory>
                        <cac:AdditionalItemProperty>
                            <cbc:Name>AdditionalItemName</cbc:Name>
                            <cbc:Value>AdditionalItemValue</cbc:Value>
                        </cac:AdditionalItemProperty>
                    </cac:Item>
                    <cac:Price>
                        <cbc:PriceAmount currencyID="EUR">200</cbc:PriceAmount>
                        <cbc:BaseQuantity unitCode="C62">2</cbc:BaseQuantity>
                    </cac:Price>
                </cac:InvoiceLine>
                <cac:InvoiceLine>
                    <cbc:ID>3</cbc:ID>
                    <cbc:Note>Testing note on line level</cbc:Note>
                    <cbc:InvoicedQuantity unitCode="C62">10</cbc:InvoicedQuantity>
                    <cbc:LineExtensionAmount currencyID="EUR">900.00</cbc:LineExtensionAmount>
                    <cbc:AccountingCost>Konteringsstreng</cbc:AccountingCost>
                    <cac:InvoicePeriod>
                        <cbc:StartDate>2023-12-02</cbc:StartDate>
                        <cbc:EndDate>2032-12-04</cbc:EndDate>
                    </cac:InvoicePeriod>
                    <cac:OrderLineReference>
                        <cbc:LineID>124</cbc:LineID>
                    </cac:OrderLineReference>
                    <cac:AllowanceCharge>
                        <cbc:ChargeIndicator>true</cbc:ChargeIndicator>
                        <cbc:AllowanceChargeReasonCode>CG</cbc:AllowanceChargeReasonCode>
                        <cbc:AllowanceChargeReason>Charge</cbc:AllowanceChargeReason>
                        <cbc:MultiplierFactorNumeric>1</cbc:MultiplierFactorNumeric>
                        <cbc:Amount currencyID="EUR">1</cbc:Amount>
                        <cbc:BaseAmount currencyID="EUR">100</cbc:BaseAmount>
                    </cac:AllowanceCharge>
                    <cac:AllowanceCharge>
                        <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
                        <cbc:AllowanceChargeReasonCode>95</cbc:AllowanceChargeReasonCode>
                        <cbc:AllowanceChargeReason>Discount</cbc:AllowanceChargeReason>
                        <cbc:Amount currencyID="EUR">101</cbc:Amount>
                    </cac:AllowanceCharge>
                    <cac:Item>
                        <cbc:Description>Description of item</cbc:Description>
                        <cbc:Name>item name</cbc:Name>
                        <cac:SellersItemIdentification>
                            <cbc:ID>97iugug876</cbc:ID>
                        </cac:SellersItemIdentification>
                        <cac:CommodityClassification>
                            <cbc:ItemClassificationCode listID="SRV">86776</cbc:ItemClassificationCode>
                        </cac:CommodityClassification>
                        <cac:ClassifiedTaxCategory>
                            <cbc:ID>S</cbc:ID>
                            <cbc:Percent>25.0</cbc:Percent>
                            <cac:TaxScheme>
                                <cbc:ID>VAT</cbc:ID>
                            </cac:TaxScheme>
                        </cac:ClassifiedTaxCategory>
                        <cac:AdditionalItemProperty>
                            <cbc:Name>AdditionalItemName</cbc:Name>
                            <cbc:Value>AdditionalItemValue</cbc:Value>
                        </cac:AdditionalItemProperty>
                    </cac:Item>
                    <cac:Price>
                        <cbc:PriceAmount currencyID="EUR">100</cbc:PriceAmount>
                    </cac:Price>
                </cac:InvoiceLine>
            </Invoice>
        </StandardBusinessDocument>
teedjay commented 1 month ago

You cannot POST a StandardBusinessDocument document directly to your AS4 endpoint using Postman. The AS4 is a SOAP based protocol on top of HTTP and you need PEPPOL compliant AS4 software to send this the correct way.

Oxalis distribution comes with a simple client called oxalis-standalone you can use : https://github.com/OxalisCommunity/oxalis/blob/master/oxalis-dist/README.md

But to do this the right way you would either need real PEPPOL certificates or some self-signed variants.

evanswappf commented 1 month ago

Hi @teedjay thanks for the reply I also tested to send using oxalis standalone command line

java -classpath "oxalis-distribution-6.7.0-distro/api/*;oxalis-as4-6.7.0-dist/*;oxalis-distribution-6.7.0-distro/bin/*" eu.sendregning.oxalis.Main -f .\sample.xml --cert .\Peppol_AccessPoint_CA.cer --protocol peppol-transport-as4-v2_0 -u https://peppol-ap-testbed.appfuxion.com/as4

but now its showing this error

2024-09-24 09:55:24,028 WARN [network.oxalis.outbound.transmission.TransmissionRequestBuilder] Endpoint was set by caller not retrieved from SMP, make sure this is intended behaviour.
2024-09-24 09:55:24,043 ERROR [eu.sendregning.oxalis.Main] Execution failed: network.oxalis.api.lang.OxalisTransmissionException: Unable to verify certificate of receiving access point.
java.util.concurrent.ExecutionException: network.oxalis.api.lang.OxalisTransmissionException: Unable to verify certificate of receiving access point.
        at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
        at eu.sendregning.oxalis.Main.main(Main.java:228)
Caused by: network.oxalis.api.lang.OxalisTransmissionException: Unable to verify certificate of receiving access point.
        at network.oxalis.outbound.transmission.DefaultTransmitter.perform(DefaultTransmitter.java:162)
        at network.oxalis.outbound.transmission.DefaultTransmitter.transmit(DefaultTransmitter.java:93)
        at eu.sendregning.oxalis.TransmissionTask.performTransmission(TransmissionTask.java:166)
        at eu.sendregning.oxalis.TransmissionTask.call(TransmissionTask.java:94)
        at eu.sendregning.oxalis.TransmissionTask.call(TransmissionTask.java:48)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:842)
Caused by: network.oxalis.vefa.peppol.security.lang.PeppolSecurityException: Validation of subject principal(CN) failed.
        at network.oxalis.vefa.peppol.security.util.DifiCertificateValidator.validate(DifiCertificateValidator.java:64)
        at network.oxalis.commons.mode.OxalisCertificateValidator.perform(OxalisCertificateValidator.java:48)
        at network.oxalis.commons.mode.OxalisCertificateValidator.validate(OxalisCertificateValidator.java:38)
        at network.oxalis.outbound.transmission.DefaultTransmitter.perform(DefaultTransmitter.java:127)
        ... 10 common frames omitted
Caused by: network.oxalis.commons.certvalidator.api.FailedValidationException: Validation of subject principal(CN) failed.
        at network.oxalis.commons.certvalidator.rule.PrincipalNameRule.validate(PrincipalNameRule.java:68)
        at network.oxalis.commons.certvalidator.structure.AndJunction.validate(AndJunction.java:29)
        at network.oxalis.commons.certvalidator.structure.AbstractJunction.validate(AbstractJunction.java:36)
        at network.oxalis.commons.certvalidator.util.CachedValidatorRule.load(CachedValidatorRule.java:43)
        at network.oxalis.commons.certvalidator.util.CachedValidatorRule.load(CachedValidatorRule.java:13)
        at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3570)
        at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2312)
        at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2189)
        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2079)
        at com.google.common.cache.LocalCache.get(LocalCache.java:4011)
        at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4034)
        at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5010)
        at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:5017)
        at network.oxalis.commons.certvalidator.util.CachedValidatorRule.validate(CachedValidatorRule.java:30)
        at network.oxalis.commons.certvalidator.util.CachedValidatorRule.validate(CachedValidatorRule.java:35)
        at network.oxalis.commons.certvalidator.ValidatorGroup.validate(ValidatorGroup.java:79)
        at network.oxalis.commons.certvalidator.ValidatorGroup.validate(ValidatorGroup.java:70)
        at network.oxalis.vefa.peppol.security.util.DifiCertificateValidator.validate(DifiCertificateValidator.java:62)
        ... 13 common frames omitted
Total time spent: 0s
Attempted to send 0 files
Failed transmissions: 1

may I know which certificate I need to use for this? because I am only provided with a .p12 file. Thanks. Best regards.

evanswappf commented 1 month ago

FYI from the postman got 200 response image

teedjay commented 1 month ago

The Postman output shows POST to your own endpoint, so unable to comment further on that.

The certificate you should be using is the one you got from OpenPEPPOL when enrolling (you should get accesspoint certificates for both TEST and PROD when you enroll).

And you should be able to use the p12 files directly, if you have a recent Java version.

evanswappf commented 1 month ago

Hi @teedjay I tested sending using the access point cert Peppol_Test_AccessPoint_CA.cer here and receive this error

2024-09-25 10:00:03,548 ERROR [eu.sendregning.oxalis.Main] Execution failed: network.oxalis.api.lang.OxalisTransmissionException: Unable to verify certificate of receiving access point.
java.util.concurrent.ExecutionException: network.oxalis.api.lang.OxalisTransmissionException: Unable to verify certificate of receiving access point.
        at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
        at eu.sendregning.oxalis.Main.main(Main.java:228)
Caused by: network.oxalis.api.lang.OxalisTransmissionException: Unable to verify certificate of receiving access point.
        at network.oxalis.outbound.transmission.DefaultTransmitter.perform(DefaultTransmitter.java:162)
        at network.oxalis.outbound.transmission.DefaultTransmitter.transmit(DefaultTransmitter.java:93)
        at eu.sendregning.oxalis.TransmissionTask.performTransmission(TransmissionTask.java:166)
        at eu.sendregning.oxalis.TransmissionTask.call(TransmissionTask.java:94)
        at eu.sendregning.oxalis.TransmissionTask.call(TransmissionTask.java:48)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:842)
Caused by: network.oxalis.vefa.peppol.security.lang.PeppolSecurityException: Validation of subject principal(CN) failed.
        at network.oxalis.vefa.peppol.security.util.DifiCertificateValidator.validate(DifiCertificateValidator.java:64)
        at network.oxalis.commons.mode.OxalisCertificateValidator.perform(OxalisCertificateValidator.java:48)
        at network.oxalis.commons.mode.OxalisCertificateValidator.validate(OxalisCertificateValidator.java:38)
        at network.oxalis.outbound.transmission.DefaultTransmitter.perform(DefaultTransmitter.java:127)
        ... 10 common frames omitted
Caused by: network.oxalis.commons.certvalidator.api.FailedValidationException: Validation of subject principal(CN) failed.
        at network.oxalis.commons.certvalidator.rule.PrincipalNameRule.validate(PrincipalNameRule.java:68)
        at network.oxalis.commons.certvalidator.structure.AndJunction.validate(AndJunction.java:29)
        at network.oxalis.commons.certvalidator.structure.AbstractJunction.validate(AbstractJunction.java:36)
        at network.oxalis.commons.certvalidator.util.CachedValidatorRule.load(CachedValidatorRule.java:43)
        at network.oxalis.commons.certvalidator.util.CachedValidatorRule.load(CachedValidatorRule.java:13)
        at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3570)
        at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2312)
        at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2189)
        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2079)
        at com.google.common.cache.LocalCache.get(LocalCache.java:4011)
        at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4034)
        at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5010)
        at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:5017)
        at network.oxalis.commons.certvalidator.util.CachedValidatorRule.validate(CachedValidatorRule.java:30)
        at network.oxalis.commons.certvalidator.util.CachedValidatorRule.validate(CachedValidatorRule.java:35)
        at network.oxalis.commons.certvalidator.ValidatorGroup.validate(ValidatorGroup.java:79)
        at network.oxalis.commons.certvalidator.ValidatorGroup.validate(ValidatorGroup.java:70)
        at network.oxalis.vefa.peppol.security.util.DifiCertificateValidator.validate(DifiCertificateValidator.java:62)
        ... 13 common frames omitted
Total time spent: 0s
Attempted to send 0 files
Failed transmissions: 1
evanswappf commented 1 month ago

The Postman output shows POST to your own endpoint, so unable to comment further on that.

The certificate you should be using is the one you got from OpenPEPPOL when enrolling (you should get accesspoint certificates for both TEST and PROD when you enroll).

And you should be able to use the p12 files directly, if you have a recent Java version.

Hi @teedjay may I know how to use the p12 to send message in this case? Because peppol only provide us with the p12 file

aaron-kumar commented 3 weeks ago

See combined response in : https://github.com/OxalisCommunity/Oxalis-AS4/issues/261 . This ticket will be closed