aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/gv/egiz/moazs/App2MzsEndpointConfig.java24
-rw-r--r--src/main/java/at/gv/egiz/moazs/App2MzsPortTypeImplementation.java32
-rw-r--r--src/main/java/at/gv/egiz/moazs/MzsApp.java13
3 files changed, 69 insertions, 0 deletions
diff --git a/src/main/java/at/gv/egiz/moazs/App2MzsEndpointConfig.java b/src/main/java/at/gv/egiz/moazs/App2MzsEndpointConfig.java
new file mode 100644
index 0000000..2d524df
--- /dev/null
+++ b/src/main/java/at/gv/egiz/moazs/App2MzsEndpointConfig.java
@@ -0,0 +1,24 @@
+package at.gv.egiz.moazs;
+
+import org.apache.cxf.Bus;
+import org.apache.cxf.jaxws.EndpointImpl;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+import javax.xml.ws.Endpoint;
+
+@Configuration
+public class App2MzsEndpointConfig {
+
+ @Autowired
+ private Bus bus;
+
+ @Bean
+ public Endpoint endpoint() {
+ EndpointImpl endpoint = new EndpointImpl(bus, new App2MzsPortTypeImplementation());
+ endpoint.publish();
+ return endpoint;
+ }
+
+}
diff --git a/src/main/java/at/gv/egiz/moazs/App2MzsPortTypeImplementation.java b/src/main/java/at/gv/egiz/moazs/App2MzsPortTypeImplementation.java
new file mode 100644
index 0000000..244cf4d
--- /dev/null
+++ b/src/main/java/at/gv/egiz/moazs/App2MzsPortTypeImplementation.java
@@ -0,0 +1,32 @@
+package at.gv.egiz.moazs;
+
+import at.gv.e_government.reference.namespace.app2mzs.App2MzsPortType;
+import at.gv.e_government.reference.namespace.moazs10.app2mzs_.DeliveryRequestType;
+import at.gv.e_government.reference.namespace.moazs10.app2mzs_.DeliveryResponseType;
+import at.gv.e_government.reference.namespace.moazs10.app2mzs_.ObjectFactory;
+import at.gv.e_government.reference.namespace.moazs10.app2mzs_.SuccessType;
+
+import javax.jws.WebParam;
+
+public class App2MzsPortTypeImplementation implements App2MzsPortType {
+
+ @Override
+ public DeliveryResponseType app2Mzs(
+ @WebParam(partName = "DeliveryRequest",
+ name = "DeliveryRequest",
+ targetNamespace = "http://reference.e-government.gv.at/namespace/moazs10/app2mzs#")
+ DeliveryRequestType deliveryRequest) {
+ System.out.println("app2mzs got called");
+
+ ObjectFactory factory = new ObjectFactory();
+ DeliveryResponseType response = factory.createDeliveryResponseType();
+
+ SuccessType success = factory.createSuccessType();
+ success.setAppDeliveryID("12345");
+ success.setMZSDeliveryID("12345");
+ response.setSuccess(success);
+
+ return response;
+ }
+
+} \ No newline at end of file
diff --git a/src/main/java/at/gv/egiz/moazs/MzsApp.java b/src/main/java/at/gv/egiz/moazs/MzsApp.java
new file mode 100644
index 0000000..6b4e34b
--- /dev/null
+++ b/src/main/java/at/gv/egiz/moazs/MzsApp.java
@@ -0,0 +1,13 @@
+package at.gv.egiz.moazs;
+
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class MzsApp {
+
+ public static void main(String[] args) {
+ SpringApplication.run(MzsApp.class, args);
+ }
+}