libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 29330380a762b3a1436224904382403e47cd525b
parent a64a7a2a1202a22df50eb076c392842275d8bf36
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Wed, 23 Oct 2019 15:16:18 +0200

logging ALL /ebicsweb requests data.

Diffstat:
Msandbox/src/main/kotlin/Main.kt | 4++--
Msandbox/src/main/kotlin/XML.kt | 3+--
2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/sandbox/src/main/kotlin/Main.kt b/sandbox/src/main/kotlin/Main.kt @@ -276,6 +276,8 @@ private suspend fun ApplicationCall.adminCustomersKeyletter() { private suspend fun ApplicationCall.ebicsweb() { val body: String = receiveText() + logger.debug("Data received: $body") + val bodyDocument: Document? = xmlProcess.parseStringIntoDom(body) if (bodyDocument == null || (!xmlProcess.validateFromDom(bodyDocument))) { @@ -530,8 +532,6 @@ private suspend fun ApplicationCall.ebicsweb() { else -> { /* Log to console and return "unknown type" */ logger.info("Unknown message, just logging it!") - logger.debug(body) - respond( HttpStatusCode.NotImplemented, SandboxError("Not Implemented") diff --git a/sandbox/src/main/kotlin/XML.kt b/sandbox/src/main/kotlin/XML.kt @@ -177,8 +177,7 @@ class XML { */ fun <T>convertDomToJaxb(finalType: Class<T>, document: Document) : JAXBElement<T> { - // val jc = JAXBContext.newInstance(finalType) - val jc = JAXBContext.newInstance("tech.libeufin.messages.ebics.keyresponse") + val jc = JAXBContext.newInstance(finalType) /* Marshalling the object into the document. */ val m = jc.createUnmarshaller()