aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-11-07 08:06:38 +0100
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-11-07 08:06:38 +0100
commit209d51f4163313e96d1549e83bce3ce6ba9d2880 (patch)
treec8b2ea00932b1eb49bb96320b832f121dfbcec21 /src
parent01459c83e7459d381ca9f0f9d4abcbdc7531a1f1 (diff)
downloadmoa-zs-209d51f4163313e96d1549e83bce3ce6ba9d2880.tar.gz
moa-zs-209d51f4163313e96d1549e83bce3ce6ba9d2880.tar.bz2
moa-zs-209d51f4163313e96d1549e83bce3ce6ba9d2880.zip
Fix Error in TNVZ QueryPerson Request
- 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: <ns2:Person xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:CorporateBodyType"> What we really want is this: <ns2:CorporateBody> - Solution: Replace createPerson with createCorporateBody. - Thanks to Johannes Hörtnagl and Christoph Kaiser-Feistmantl for the feedback.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/gv/egiz/moazs/client/TnvzHelper.java2
1 files changed, 1 insertions, 1 deletions
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)