From 5ef92bbece57932ad27ffc61df4bf7890aeadf85 Mon Sep 17 00:00:00 2001
From: Jan Zickermann <jan.zickermann@dataport.de>
Date: Mon, 31 Mar 2025 15:51:38 +0200
Subject: [PATCH] KOP-3126 config: Add logging and schema validation setting

---
 src/main/java/de/ozgcloud/eingang/xta/XtaProperties.java      | 4 ++++
 .../java/de/ozgcloud/eingang/xta/XtaServiceConfiguration.java | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/src/main/java/de/ozgcloud/eingang/xta/XtaProperties.java b/src/main/java/de/ozgcloud/eingang/xta/XtaProperties.java
index cbceb433..d67e12c6 100644
--- a/src/main/java/de/ozgcloud/eingang/xta/XtaProperties.java
+++ b/src/main/java/de/ozgcloud/eingang/xta/XtaProperties.java
@@ -54,6 +54,10 @@ class XtaProperties {
 	private KeyStore keyStore;
 	@NotEmpty
 	private List<String> identifiers;
+
+	private boolean logSoapRequests;
+	private boolean logSoapResponses;
+	private boolean validateSoapSchemas;
 }
 
 @Validated
diff --git a/src/main/java/de/ozgcloud/eingang/xta/XtaServiceConfiguration.java b/src/main/java/de/ozgcloud/eingang/xta/XtaServiceConfiguration.java
index 078d7c14..4be3dc33 100644
--- a/src/main/java/de/ozgcloud/eingang/xta/XtaServiceConfiguration.java
+++ b/src/main/java/de/ozgcloud/eingang/xta/XtaServiceConfiguration.java
@@ -73,6 +73,9 @@ public class XtaServiceConfiguration {
 				.msgBoxServiceUrl(getMsgBoxPortUrl())
 				.clientCertKeystore(clientCertKeyStore)
 				.isMessageSupported(this::isSupportedMessageType)
+				.logSoapRequests(properties.isLogSoapRequests())
+				.logSoapResponses(properties.isLogSoapResponses())
+				.schemaValidation(properties.isValidateSoapSchemas())
 				.build();
 	}
 
-- 
GitLab