aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
-rw-r--r--src/main/resources/mzs1.5.3.rc1/app2mzs.wsdl5
4 files changed, 70 insertions, 4 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);
+ }
+}
diff --git a/src/main/resources/mzs1.5.3.rc1/app2mzs.wsdl b/src/main/resources/mzs1.5.3.rc1/app2mzs.wsdl
index ad6b5d3..a0da496 100644
--- a/src/main/resources/mzs1.5.3.rc1/app2mzs.wsdl
+++ b/src/main/resources/mzs1.5.3.rc1/app2mzs.wsdl
@@ -3,12 +3,9 @@
name="app2mzs"
targetNamespace="http://reference.e-government.gv.at/namespace/app2mzs.wsdl"
xmlns="http://schemas.xmlsoap.org/wsdl/"
- xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
- xmlns:mzso="http://reference.e-government.gv.at/namespace/moazs/app2mzs/20040401"
xmlns:mzs="http://reference.e-government.gv.at/namespace/moazs10/app2mzs#"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
- xmlns:tns="http://reference.e-government.gv.at/namespace/app2mzs.wsdl"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ xmlns:tns="http://reference.e-government.gv.at/namespace/app2mzs.wsdl">
<import location="app2mzs.xsd"
namespace="http://reference.e-government.gv.at/namespace/moazs10/app2mzs#" />