From c8271e5684e26b57880de7f1b8a3b0195ad6f68e Mon Sep 17 00:00:00 2001 From: Christof Rabensteiner Date: Mon, 15 Apr 2019 14:08:12 +0200 Subject: Add Marshaller for autogenerated Schema Types --- .../java/at/gv/egiz/moazs/MyMarshallerConfig.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/main/java/at/gv/egiz/moazs/MyMarshallerConfig.java (limited to 'src/main/java/at/gv/egiz/moazs/MyMarshallerConfig.java') diff --git a/src/main/java/at/gv/egiz/moazs/MyMarshallerConfig.java b/src/main/java/at/gv/egiz/moazs/MyMarshallerConfig.java new file mode 100644 index 0000000..9842d49 --- /dev/null +++ b/src/main/java/at/gv/egiz/moazs/MyMarshallerConfig.java @@ -0,0 +1,22 @@ +package at.gv.egiz.moazs; + +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +import javax.xml.bind.JAXBContext; +import javax.xml.bind.JAXBException; + +@Configuration +public class MyMarshallerConfig { + + @Bean + public JAXBContext jaxbcontext() throws JAXBException { + return JAXBContext.newInstance( + at.gv.e_government.reference.namespace.zustellung.mzs.persondata_.ObjectFactory.class, + at.gv.e_government.reference.namespace.zustellung.mzs.app2mzs_.ObjectFactory.class, + at.gv.e_government.reference.namespace.zustellung.msg.phase2._20181206_.ObjectFactory.class, + at.gv.e_government.reference.namespace.persondata.phase2._20181206_.ObjectFactory.class); + + } + +} -- cgit v1.2.3