From 209d51f4163313e96d1549e83bce3ce6ba9d2880 Mon Sep 17 00:00:00 2001 From: Christof Rabensteiner Date: Thu, 7 Nov 2019 08:06:38 +0100 Subject: Fix Error in TNVZ QueryPerson Request MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Problem: When assembling the TNVZ Query Person Request, I convert the Sender with msgp's ObjectFactory.createPerson. The marshaller will then create a Corporate body like this: What we really want is this: - Solution: Replace createPerson with createCorporateBody. - Thanks to Johannes Hörtnagl and Christoph Kaiser-Feistmantl for the feedback. --- src/main/java/at/gv/egiz/moazs/client/TnvzHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/at/gv/egiz/moazs/client/TnvzHelper.java b/src/main/java/at/gv/egiz/moazs/client/TnvzHelper.java index 0f6b9a2..20e10f9 100644 --- a/src/main/java/at/gv/egiz/moazs/client/TnvzHelper.java +++ b/src/main/java/at/gv/egiz/moazs/client/TnvzHelper.java @@ -146,7 +146,7 @@ public class TnvzHelper { var mzsIdentification = corporateBody.getIdentification().get(0); var msgIdentification = converter.convert(mzsIdentification); - var msgPerson = FACTORY.createPerson(converter.convert(corporateBody)); + var msgPerson = FACTORY.createCorporateBody(converter.convert(corporateBody)); return senderBuilder() .withIdentification(msgIdentification) -- cgit v1.2.3