Skip to content
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

Dynamically set responder address for incoming messages #233

Closed
koes-soptim opened this issue Apr 3, 2024 · 2 comments
Closed

Dynamically set responder address for incoming messages #233

koes-soptim opened this issue Apr 3, 2024 · 2 comments
Assignees
Labels

Comments

@koes-soptim
Copy link
Contributor

In our software, we use IPmodeResolver.getPModeOfID to construct the PMode for any incoming AS4 message.
Anyway, the parameter sAddress, which represents our "own" AS4 endpoint address(es) is always null.
I found out that the address can only be configured globally ("phase4.endpoint.address") and is queried in SOAPHeaderElementProcessorExtractEbms3Messaging.

There is one issue: For the BDEW profile, the software manufacturers have to use dynamic
addresses (like https://1111111111111.company.cloud, https://2222222222222.company.cloud) with SNI, so the AS4 endpoint can change with any incoming message.

Could you provide any way (e.g. a callback?) to handle this dynamically?

Kind regards,
Robin

@phax phax self-assigned this Apr 3, 2024
@phax phax added enhancement Profile BDEW BDEW AS4 related labels Apr 3, 2024
@phax
Copy link
Owner

phax commented Aug 26, 2024

Thanks, I will integrate this in v3

@phax
Copy link
Owner

phax commented Aug 26, 2024

Will be part of the first 3.0.0 release

Edit: I should have explained how-to ;-)

  • Customizing can be done via the new interface IAS4IncomingReceiverConfiguration
  • The actual receiver configuration can be set as a member of the AS4RequestHandler (as all the rest in v3)

Question: do you need to configure it for the sender as well?

@phax phax closed this as completed Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants