diff options
author | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-11-07 08:06:38 +0100 |
---|---|---|
committer | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-11-07 08:06:38 +0100 |
commit | 209d51f4163313e96d1549e83bce3ce6ba9d2880 (patch) | |
tree | c8b2ea00932b1eb49bb96320b832f121dfbcec21 /src | |
parent | 01459c83e7459d381ca9f0f9d4abcbdc7531a1f1 (diff) | |
download | moa-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.java | 2 |
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) |