0196:<snip> Endpoint not selected
Closed this issue · 2 comments
Hi Philip,
The SMP logs the following:
[2023-08-10T16:57:25,571] [smc-discovery-service] [INFO ] [qtp131953431-26] Performing SMP query at '/iso6523-actorid-upis%3A%3A0196%3A/services/busdox-docid-qns%3A%3Aurn%3Aoasis%3Anames%3Aspecification%3Aubl%3Aschema%3Axsd%3AInvoice-2%3A%3AInvoice%23%23urn%3Acen.eu%3Aen16931%3A2017%23compliant%23urn%3Afdc%3Apeppol.eu%3A2017%3Apoacc%3Abilling%3A3.0%3A%3A2.1' -- com.helger.smpclient.httpclient.AbstractGenericSMPClient.executeRequest(AbstractGenericSMPClient.java:318)
which with curl is
$ curl http://b-a0bce7088e2d349c92b03cf2b308df89.iso6523-actorid-upis.edelivery.tech.ec.europa.eu//iso6523-actorid-upis%3A%3A0196%3A<snip>/services/busdox-docid-qns%3A%3Aurn%3Aoasis%3Anames%3Aspecification%3Aubl%3Aschema%3Axsd%3AInvoice-2%3A%3AInvoice%23%23urn%3Acen.eu%3Aen16931%3A2017%23compliant%23urn%3Afdc%3Apeppol.eu%3A2017%3Apoacc%3Abilling%3A3.0%3A%3A2.1
The result is
<?xml version="1.0" encoding="utf-8"?>
<SignedServiceMetadata
xmlns:xsd=http://www.w3.org/2001/XMLSchema
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
xmlns=http://busdox.org/serviceMetadata/publishing/1.0/>
<ServiceMetadata>
<ServiceInformation>
<ParticipantIdentifier scheme="iso6523-actorid-upis"
xmlns=http://busdox.org/transport/identifiers/1.0/>0196:<snip>
</ParticipantIdentifier>
<DocumentIdentifier scheme="busdox-docid-qns"
xmlns=http://busdox.org/transport/identifiers/1.0/>urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0::2.1
</DocumentIdentifier>
<ProcessList>
<Process>
<ProcessIdentifier scheme="cenbii-procid-ubl"
xmlns=http://busdox.org/transport/identifiers/1.0/>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0
</ProcessIdentifier>
<ServiceEndpointList>
<Endpoint transportProfile="busdox-transport-as2-ver1p0">
<EndpointReference
xmlns=http://www.w3.org/2005/08/addressing>
<Address>[https://endpoint.sendill.is/as210ep/opas2endpoint</Address](https://endpoint.sendill.is/as210ep/opas2endpoint%3c/Address)>
</EndpointReference>
<RequireBusinessLevelSignature>false</RequireBusinessLevelSignature>
<MinimumAuthenticationLevel>1</MinimumAuthenticationLevel>
<Certificate>MIIFsTCCA5mgAwIBAgIQEya3SdsericU/zq5pFFVizANBgkqhkiG9w0BAQsFADBOMQswCQYDVQQGEwJCRTEZMBcGA1UEChMQT3BlblBFUFBPTCBBSVNCTDEkMCIGA1UEAxMbUEVQUE9MIEFDQ0VTUyBQT0lOVCBDQSAtIEcyMB4XDTIyMDcyMjAwMDAwMFoXDTI0MDcxMTIzNTk1OVowWzELMAkGA1UEBhMCSVMxGTAXBgNVBAoMEFVuaW1hemUgU29mdHdhcmUxHTAbBgNVBAsMFFBFUFBPTCBQUk9EVUNUSU9OIEFQMRIwEAYDVQQDDAlQU0UwMDAwNjEwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDBCuu1xs+oqNZM9WnSyzg/zbzb7fM9dWu6ULLFvUA7SrldYgenG1HW/xizn8ixF5+7hWi8RpVvqrIJCTmOv4XPtvVCqmwCebmLfvZKvRcLNVTqkgTncNfQLbeAACjLsVKQoEneCmVOlPXZSS4msSzL+bqnKytr6fuxpjKSHNH49qjUnTb4y9ny+DzZgQueAv6M+m5dnd7xxFqYkDg+xDerjo96nA8kTPpTNbfbjZJ2WZATXkoEQk1iWEMJ9SyIeFABPPJ6TV83TgoXggSwKlNmEnYtJQQcVHrwGc2HOPepNJIbHWAYHCDHJoefB8D2HfZvY+9EG2rmB4dln3KmjwtvAgMBAAGjggF8MIIBeDAMBgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIDqDAWBgNVHSUBA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pY0vxWBbdikec7Kmi4YBqBUIpmIPQv44iMrM4+LBySfcboH4hpfgW4UQs1yjnZGkNw15AaxTQtzCfNtp</Certificate>
<ServiceDescription>Unimaze PEPPOL AS2 Access Point</ServiceDescription>
<TechnicalContactUrl>[peppol@unimaze.com</TechnicalContactUrl](mailto:peppol@unimaze.com%3c/TechnicalContactUrl)>
<TechnicalInformationUrl>[http://www.unimaze.com</TechnicalInformationUrl](http://www.unimaze.com%3C/TechnicalInformationUrl)>
</Endpoint>
</ServiceEndpointList>
</Process>
<Process>
<ProcessIdentifier scheme="cenbii-procid-ubl"
xmlns=http://busdox.org/transport/identifiers/1.0/>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0
</ProcessIdentifier>
<ServiceEndpointList>
<Endpoint transportProfile="peppol-transport-as4-v2_0">
<EndpointReference
xmlns=http://www.w3.org/2005/08/addressing>
<Address>[https://as4embep.sendill.is/msh/receive</Address](https://as4embep.sendill.is/msh/receive%3c/Address)>
</EndpointReference>
<RequireBusinessLevelSignature>false</RequireBusinessLevelSignature>
<MinimumAuthenticationLevel>1</MinimumAuthenticationLevel>
<Certificate>MIIFsTCCA5mgAwIBAgIQEya3SdsericU/zq5pFFVizANBgkqhkiG9w0BAQsFADBOMQswCQYDVQQGEwJCRTEZMBcGA1UEChMQT3BlblBFUFBPTCBBSVNCTDEkMCIGA1UEAxMbUEVQUE9MIEFDQ0VTUyBQT0lOVCBDQSAtIEcyMB4XDTIyMDcyMjAwMDAwMFoXDTI0MDcxMTIzNTk1OVowWzELMAkGA1UEBhMCSVMxGTAXBgNVBAoMEFVuaW1hemUgU29mdHdhcmUxHTAbBgNVBAsMFFBFUFBPTCBQUk9EVUNUSU9OIEFQMRIwEAYDVQQDDAlQU0UwMDAwNjEwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDBCuu1xs+oqNZM9WnSyzg/zbzb7fM9dWu6ULLFvUA7SrldYgenG1HW/xizn8ixF5+7hWi8RpVvqrIJCTmOv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iv1iDcPCZyiJ3ra1NVcvAxFS53N1EAIhhUQkrF4Yykz1XTLULw3tIuRbmfr9ammggqXImi1Hl5seDpGesPBaEq2upXd54bvPnX2CRi3FyS8VI33xVQDScPQo7v7QhtKqt7zodM+c4hhrRUOzA3mCGv+rvTa8wEwUB1MhflbvReFfNosMlvp2PdGVz8S383G8LxUbofs16cKYby8j/HBL6cvA4U+3arTHSEVMh8aLU5thWttDRVd0AiykdynXVdzjLqU9yKt9WXGRnGCVBFt5mX3eHzHCMX3HQKxMhjTDFAOT7j2jNnD8e3i0BobRcFFB9CEs5d0pc/2BqRdGnpY0vxWBbdikec7Kmi4YBqBUIpmIPQv44iMrM4+LBySfcboH4hpfgW4UQs1yjnZGkNw15AaxTQtzCfNtp</Certificate>
<ServiceDescription>Unimaze PEPPOL AS4 Pilot Access Point</ServiceDescription>
<TechnicalContactUrl>[peppol@unimaze.com</TechnicalContactUrl](mailto:peppol@unimaze.com%3c/TechnicalContactUrl)>
<TechnicalInformationUrl>[http://www.unimaze.com</TechnicalInformationUrl](http://www.unimaze.com%3C/TechnicalInformationUrl)>
</Endpoint>
</ServiceEndpointList>
</Process>
</ProcessList>
</ServiceInformation>
</ServiceMetadata>
<Signature
xmlns=http://www.w3.org/2000/09/xmldsig#>
<SignedInfo>
<CanonicalizationMethod Algorithm=http://www.w3.org/TR/2001/REC-xml-c14n-20010315 />
<SignatureMethod Algorithm=http://www.w3.org/2000/09/xmldsig#rsa-sha1 />
<Reference URI="">
<Transforms>
<Transform Algorithm=http://www.w3.org/2000/09/xmldsig#enveloped-signature />
</Transforms>
<DigestMethod Algorithm=http://www.w3.org/2000/09/xmldsig#sha1 />
<DigestValue>JXy/PXcClYLn6o0GYamVe9rtauE=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>tz/ur7VedckMljy2Hhp65P2qQNAVuKuTjFBi1n+zt3N5TyC9sLWmoN6togtFCKEs3p35Fx3saHAIgnOqGcBQws1m4Hze4jdo5tYaCsXJOo2dSIHK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4eX5jNOHixMhjnqz0X1iFq41bTC9fMTFe7nrwVv1rH+y4ZpCzBkgFogHaZr5bqSRe6kgy5bTRcMlZLlzUchdgxkg7S35</X509Certificate>
</X509Data>
</KeyInfo>
</Signature>
</SignedServiceMetadata>
However, the next log entry is
[2023-08-10T16:57:26,131] [smc-discovery-service] [WARN ] [qtp131953431-26] Found 0 endpoints for process [PeppolProcessIdentifier@0x1183233d: scheme=cenbii-procid-ubl; value=urn:fdc:peppol.eu:2017:poacc:billing:01:1.0] and transport profile 'peppol-transport-as4-v2_0' valid at 2023-08-10T16:57:26.129852 -- com.helger.smpclient.peppol.SMPClientReadOnly.getEndpointAt(SMPClientReadOnly.java:809)
Why would the second process entry not be selected?
Thanks!
The ProcessIdentifier
with the value urn:fdc:peppol.eu:2017:poacc:billing:01:1.0
is contained twice. In that case, both <Endpoint>
elements should be children of one <ServiceEndpointList>
element.
The correct XML layout is like this:
<ProcessList>
<Process>
<ProcessIdentifier scheme="cenbii-procid-ubl" xmlns="http://busdox.org/transport/identifiers/1.0/">urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</ProcessIdentifier>
<ServiceEndpointList>
<Endpoint transportProfile="busdox-transport-as2-ver1p0">
<EndpointReference xmlns="http://www.w3.org/2005/08/addressing">
<Address>...</Address>
</EndpointReference>
<RequireBusinessLevelSignature>false</RequireBusinessLevelSignature>
<MinimumAuthenticationLevel>1</MinimumAuthenticationLevel>
<Certificate>...</Certificate>
<ServiceDescription>...</ServiceDescription>
<TechnicalContactUrl>...</TechnicalContactUrl>
<TechnicalInformationUrl>...</TechnicalInformationUrl>
</Endpoint>
<Endpoint transportProfile="peppol-transport-as4-v2_0">
<EndpointReference xmlns="http://www.w3.org/2005/08/addressing">
<Address>...</Address>
</EndpointReference>
<RequireBusinessLevelSignature>false</RequireBusinessLevelSignature>
<MinimumAuthenticationLevel>1</MinimumAuthenticationLevel>
<Certificate>...</Certificate>
<ServiceDescription>...</ServiceDescription>
<TechnicalContactUrl>...</TechnicalContactUrl>
<TechnicalInformationUrl>...</TechnicalInformationUrl>
</Endpoint>
</ServiceEndpointList>
</Process>
</ProcessList>
Thanks Philip! I would never have spotted that ;). We are in contact with the SMP provider.