Replies: 3 comments 11 replies
-
Hello @duke-nuke , sorry for the late response Btw. you shouldn't call |
Beta Was this translation helpful? Give feedback.
-
I am using v2.x , have plans to migrate to 3.x once its stable, to handle incoming CEF do i have to provide implementation like Phase4PeppolServletMessageProcessorSPI.class or same implementation will handle the incoming message ? regards |
Beta Was this translation helpful? Give feedback.
-
Hi Philip Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi Philip
Hope you are good,
I am working on handling multiple profile in Phase4, i am using Spring-boot project as a starting point for this, followed your guide how to handle multi profile provided in the wiki , but getting errors,
I have implemented the Interface using below code.
`public class CustomHandler implements AS4XServletHandler.IHandlerCustomizer{
}
`
Set this in the ServletConfig class
hdl.setHandlerCustomizer(new CustomHandler(hdl));
but when i am processing cef message i am getting on first request i get Private key not found for key , Look like the first request is picking up the keystore of peppol profile, but the next request i picking the certificate which i am using for cef but
then it gives the following error
Caused by: com.helger.phase4.util.Phase4Exception: Error validating incoming AS4 UserMessage with the profile Peppol following errors are present: [PartyInfo/From[0]/@type must be 'urn:fdc:peppol.eu:2017:identifiers:ap' instead of 'urn:oasis:names:tc:ebcore:partyid-type:unregistered', PartyInfo/To[0]/@type must be 'urn:fdc:peppol.eu:2017:identifiers:ap' instead of 'urn:oasis:names:tc:ebcore:partyid-type:unregistered', CollaborationInfo/AgreementRef is missing]
How can i select the profile based on the incoming message and also
in the above custom implementation the values are set per request or for all the requests ? will there be any multi request issues ? if this is working at instace level?
regards
Khurram Shahzad
Beta Was this translation helpful? Give feedback.
All reactions