aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/gv/egiz/moazs/App2MzsService.java4
-rw-r--r--src/main/java/at/gv/egiz/moazs/App2MzsServiceConfig.java10
2 files changed, 12 insertions, 2 deletions
diff --git a/src/main/java/at/gv/egiz/moazs/App2MzsService.java b/src/main/java/at/gv/egiz/moazs/App2MzsService.java
index a9c4302..2f06f7b 100644
--- a/src/main/java/at/gv/egiz/moazs/App2MzsService.java
+++ b/src/main/java/at/gv/egiz/moazs/App2MzsService.java
@@ -3,6 +3,7 @@ package at.gv.egiz.moazs;
import at.gv.e_government.reference.namespace.zustellung.mzs.app2mzs.App2MzsPortType;
import at.gv.e_government.reference.namespace.zustellung.mzs.app2mzs_.*;
import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
import javax.jws.WebParam;
import java.math.BigInteger;
@@ -12,11 +13,12 @@ import java.util.concurrent.TimeoutException;
import static java.util.concurrent.CompletableFuture.supplyAsync;
+@Service
public class App2MzsService implements App2MzsPortType {
//TODO move timeout to config
private final int timeoutForAnwser = 10;
- private final String MZSTNS = "http://reference.e-government.gv.at/namespace/moazs10/app2mzs#";
+ private final String MZSTNS = "http://reference.e-government.gv.at/namespace/zustellung/mzs/app2mzs#";
@Autowired
private DeliveryRequestHandler deliveryRequestHandler;
diff --git a/src/main/java/at/gv/egiz/moazs/App2MzsServiceConfig.java b/src/main/java/at/gv/egiz/moazs/App2MzsServiceConfig.java
index 64e353d..578fecd 100644
--- a/src/main/java/at/gv/egiz/moazs/App2MzsServiceConfig.java
+++ b/src/main/java/at/gv/egiz/moazs/App2MzsServiceConfig.java
@@ -1,5 +1,6 @@
package at.gv.egiz.moazs;
+import at.gv.e_government.reference.namespace.zustellung.mzs.app2mzs_.ObjectFactory;
import org.apache.cxf.Bus;
import org.apache.cxf.jaxws.EndpointImpl;
import org.springframework.beans.factory.annotation.Autowired;
@@ -14,12 +15,19 @@ public class App2MzsServiceConfig {
@Autowired
private Bus bus;
+ @Autowired
+ private App2MzsService app2mzsService;
+
@Bean
public Endpoint endpoint() {
- EndpointImpl endpoint = new EndpointImpl(bus, new App2MzsService());
+ EndpointImpl endpoint = new EndpointImpl(bus, app2mzsService);
endpoint.setAddress("/");
endpoint.publish();
return endpoint;
}
+ @Bean
+ public ObjectFactory objectFactory() {
+ return new ObjectFactory();
+ }
}