-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling SMP lookup failed #248
Comments
Hi @tonytram, SMPClientReadOnly smpClient = new SMPClientReadOnly (...); // the same as you put in the builder
SignedServiceMetadataType serviceGroup = smpClient.getServiceGroupOrNull (aServiceGroupID);
if (serviceGroup == null) {
// Participant not registered in the Peppol Network
} else {
// Participant is registered
// Trigger the AS4 sending
} hth |
Hi Philip,
Thank you so much for your support. I will try this approach and get back
to you.
*Kind Regards *
*Tri Tram (Tony)*
|
Hi @phax, I used ServiceGroupType instead because SignedServiceMetadataType caused a compile error. An extra request to check the availability of a given Participant might not be efficient. To give you more context about our scenario, we're encountering cases where a lookup for a given ParticipantId fails during data transmission to Peppol. However, the Participant actually exists on the network. This issue might be due to latency or network lag. Do you have any idea how we can make it more efficient? Thank you, |
Yeah thanks. There is a bug in the code |
It took some time, but I think I found a suitable solution. With phase4 2.8.1 you can do the following code: I was trying to find a better solution but failed - sorry. Release will come soon |
Hi @phax , |
Hi @phax
I need help distinguishing between "Participant not existing" and "Participant not registered for this document type" in Phase4. The UnknownHostException, which could handle this, isn't accessible outside the SMPClient library. Any suggestions? Thanks for your help!
The text was updated successfully, but these errors were encountered: