aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-03-19 08:58:58 +0100
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-03-19 08:58:58 +0100
commit4fb466ee906d7442b059bc62fde13463ca6c4173 (patch)
tree49a438b4b0783a780b7e209016e345d4be721d30 /src/main/java
parenteeb17fd581546d757cfa63cfaeaa6fa735dac9dd (diff)
downloadmoa-zs-4fb466ee906d7442b059bc62fde13463ca6c4173.tar.gz
moa-zs-4fb466ee906d7442b059bc62fde13463ca6c4173.tar.bz2
moa-zs-4fb466ee906d7442b059bc62fde13463ca6c4173.zip
Add App2MzsService Stub
- Try it out with mvn spring-boot:run
Diffstat (limited to 'src/main/java')
-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);
+ }
+}