Replies: 10 comments 35 replies
-
Can you please elaborate what BDEW is and eventually provide some links here? |
Beta Was this translation helpful? Give feedback.
-
The BDEW is the largest energy industry association in Germany. They specified an AS4 profile for exchanging energy related information. |
Beta Was this translation helpful? Give feedback.
-
so far I'm watching and evaluating. There are of course other open source AS4 applications. But my focus is currently on phase4 as it is well maintained and you are replying quickly. |
Beta Was this translation helpful? Give feedback.
-
I was also asked to check support for BDEW in Phase4. Please give us any solution even if it is not solved by Phase4. Our team is also trying to find any suitable solution and I will give you feedback if we find anything helpful. |
Beta Was this translation helpful? Give feedback.
-
Information from Santuario JIRA leads to Slack https://phoss.slack.com/ and seems that @phax participates somehow on that. Can I humbly ask for adding unicornsystems.eu to allowed domains of that slack server to see channel #as4-de-bdew? |
Beta Was this translation helpful? Give feedback.
-
@phax can you please also add @soptim.de to the list of allowed domains for the channel #as4-de-bdew? As a software vendor for the DACH energy industry, we would also like to participate and contribute to the project. Thanks! |
Beta Was this translation helpful? Give feedback.
-
I'm in the process of trying to set up phase4 to work with my application written in Scala. I've already found that I have needed to downgrade to a version 11 JVM from a version 17, which is fine. Where I'm getting stuck now is I don't know how to get my outgoing message to be encrypted. Following is a snippet of the logs I'm seeing . . .
specifically this line is of interest to me
Here is a minimized version of the code I'm using to initialize the send (apologies for the Scala-ness, hopefully it's legible enough) for {
payloadParams: BDEWPayloadParams <- IO.pure {
val params = new BDEWPayloadParams()
params.setDocumentType("DT1")
params.setDocumentDate(PDTFactory.getCurrentLocalDate)
params.setDocumentNumber(456)
params.setFulfillmentDate(
PDTFactory.getCurrentLocalDate.minusMonths(2)
)
params.setSubjectPartyId("AS4-Receiver")
params.setSubjectPartyRole("Role1")
params
}
httpClientSettings: Phase4BDEWHttpClientSettings <- IO.pure {
val settings = new Phase4BDEWHttpClientSettings()
settings.setUserAgent("kraken-siphon")
settings.setSSLContextTrustAll()
settings
}
encryptionProps <- IO.pure {
val factory = AS4CryptoFactoryProperties.getDefaultInstance
val properties = factory.cryptoProperties()
properties.setKeyAlias("1")
properties
}
send <- IO.blocking {
Phase4BDEWSender
.builder()
.encryptionKeyIdentifierType(
ECryptoKeyIdentifierType.X509_KEY_IDENTIFIER
)
.signingKeyIdentifierType(
ECryptoKeyIdentifierType.BST_DIRECT_REFERENCE
)
.fromPartyID("AS4-Sender")
.fromRole(
CAS4.DEFAULT_INITIATOR_URL
)
.toPartyID("AS4-Receiver")
.toRole(
CAS4.DEFAULT_RESPONDER_URL
)
.endpointURL("http://localhost:18141/as4")
.service(BDEWPMode.SERVICE_MARKTPROZESSE)
.action(BDEWPMode.ACTION_DEFAULT)
.httpClientFactory(httpClientSettings)
.cryptoFactoryCrypt(
new AS4CryptoFactoryProperties(encryptionProps)
)
.payload(
AS4OutgoingAttachment
.builder()
.data("Hello World!".getBytes())
.compressionGZIP()
.mimeTypeXML()
.charset(StandardCharsets.UTF_8),
payloadParams
)
.sendMessageAndCheckForReceipt()
}
_ <- IO.delay(
logger.warn(send.toString)
)
} yield () Here is a redacted version of my
|
Beta Was this translation helpful? Give feedback.
-
https://issues.apache.org/jira/browse/SANTUARIO-511 has been implemented in xmlsec 3.0.4. Would it help for the BDEW profile, if phase4 updates this dependency? |
Beta Was this translation helpful? Give feedback.
-
@phax would it be possible to add my address lee.priest@bradyplc.com to the slack channel #as4-de-bdew? We are working on this AS4 with the bdew profile and would appreciate the opportunity to share any wisdom from others in the channel. |
Beta Was this translation helpful? Give feedback.
-
There still seems to be an issue with using wss4j 3.0.5 for BDEW. |
Beta Was this translation helpful? Give feedback.
-
Hi there,
does anyone know if there is a ready to use BDEW profile for phase 4 ?
Maybe in development and to be shared soon?
Beta Was this translation helpful? Give feedback.
All reactions