aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/zusemsg
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-07-08 18:02:37 +0200
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-07-08 18:02:37 +0200
commitc1a1a5130a4ecf755da72941ad3525beb919447f (patch)
treeecaca5da80571e10f25186402ee73d8e062d4544 /src/main/resources/zusemsg
parent78f0715d86a055aed11138df5f66b0794e72326a (diff)
downloadmoa-zs-c1a1a5130a4ecf755da72941ad3525beb919447f.tar.gz
moa-zs-c1a1a5130a4ecf755da72941ad3525beb919447f.tar.bz2
moa-zs-c1a1a5130a4ecf755da72941ad3525beb919447f.zip
Implement Zuse2App Services
- Add zuse2app.wsdl contract. - Add MsgResponse as an type-agnostic view for DeliveryRequestStatus and DeliveryNotification messages. Reason: Both DeliveryNotification and DeliveryRequestStatus messages have similar fields and need to be treated similarly (e.g.: receive from msg service, store to repository, verify signature, store to file...). In order to prevent duplicated code, the wrapper interface provides a type-agnostic view onto these messages for depending components to operate on. - Add MsgResponseHandler interface; decides how to process MsgResponse. Also implement this handler with a multi-threaded single-node implementation. - Add MsgResponseSink interface; decides how to archive MsgResponse. - Implement and test SafeResponseToFileSink. Change Identifier for MsgResponses: - Before, DeliveryRequestStatus and DeliveryNotifications had their own repositories. Now, both types are stored in the same repository (the MsgResponse repository) to streamline the handling of MsgResponses. We need to change the identification of MsgReponses, otherwise the identifiers (AppDeliveryID) clash. - MsgResponses are not identified by: <AppDeliveryId>+<typeSpecificSuffix> - Rewrite StoreSOAPInterceptor to accommodate fact that, both DeliveryRequestStatus and DeliveryNotification messages have different IDs upon storage / retrieval. Restructure packages and components as follows: - client: All components that are involved when consuming a web service. - process: "fabric" of MoaZS; contains business logic that orchestrates back-end tasks of MoaZS's operational services, e.g.: by processing a delivery request. - service: Implementation of MoaZS's front-end services. Refactoring: - MoaZSException: Remove unused fields. Before: Store mzsrequest, tnvzresult, msgrequest and msgresult as members. Now: Only keep the fields that are needed later, e.g for generating a msg:DeliveryRequestStatus element. Add copy constructor to Builder. - Put storage of byte[] into a dedicated "BinaryRepository". Reason: This was useful in a former design. Now it's not really needed anymore. - Put "create Endpoint" code into EndpointFactory. Reason: Eliminate duplicated code when configuring a service. Testing: - Activate Stacktraces in surefire.
Diffstat (limited to 'src/main/resources/zusemsg')
-rw-r--r--src/main/resources/zusemsg/zuse2app_p2.wsdl81
1 files changed, 81 insertions, 0 deletions
diff --git a/src/main/resources/zusemsg/zuse2app_p2.wsdl b/src/main/resources/zusemsg/zuse2app_p2.wsdl
new file mode 100644
index 0000000..d50c3cc
--- /dev/null
+++ b/src/main/resources/zusemsg/zuse2app_p2.wsdl
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:msg="http://reference.e-government.gv.at/namespace/zustellung/msg/phase2/20181206#" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:service="http://reference.e-government.gv.at/namespace/zustellung/app2zuse/phase2/20181206#" targetNamespace="http://reference.e-government.gv.at/namespace/zustellung/app2zuse/phase2/20181206#">
+ <wsdl:types>
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" elementFormDefault="qualified" attributeFormDefault="unqualified" vc:minVersion="1.1" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
+ <xs:import namespace="http://reference.e-government.gv.at/namespace/zustellung/msg/phase2/20181206#" schemaLocation="zuse_p2.xsd"/>
+ </xs:schema>
+ </wsdl:types>
+ <wsdl:message name="DeliveryNotification">
+ <wsdl:part name="DeliveryNotification" element="msg:DeliveryNotification">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="DeliveryNotificationACK">
+ <wsdl:part name="DeliveryNotificationACK" element="msg:DeliveryNotificationACK">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="DeliveryRequestStatus">
+ <wsdl:part name="DeliveryRequestStatus" element="msg:DeliveryRequestStatus">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="DeliveryRequestStatusACK">
+ <wsdl:part name="DeliveryRequestStatusACK" element="msg:DeliveryRequestStatusACK">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="GetVersionRequest">
+ <wsdl:part name="GetVersionRequest" element="msg:GetVersionRequest">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="GetVersionResponse">
+ <wsdl:part name="GetVersionResponse" element="msg:GetVersionResponse">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:portType name="Zuse2AppPort">
+ <wsdl:operation name="Notification">
+ <wsdl:input name="DeliveryNotification" message="service:DeliveryNotification"/>
+ <wsdl:output name="DeliveryNotificationACK" message="service:DeliveryNotificationACK"/>
+ </wsdl:operation>
+ <wsdl:operation name="Status">
+ <wsdl:input name="DeliveryRequestStatus" message="service:DeliveryRequestStatus"/>
+ <wsdl:output name="DeliveryRequestStatusACK" message="service:DeliveryRequestStatusACK"/>
+ </wsdl:operation>
+ <wsdl:operation name="GetVersion">
+ <wsdl:input name="GetVersionRequest" message="service:GetVersionRequest"/>
+ <wsdl:output name="GetVersionResponse" message="service:GetVersionResponse"/>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="Zuse2AppPortSoap12" type="service:Zuse2AppPort">
+ <soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="Notification">
+ <soap12:operation soapAction="Notification" soapActionRequired="false"/>
+ <wsdl:input name="DeliveryNotification">
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="DeliveryNotificationACK">
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="Status">
+ <soap12:operation soapAction="Status" soapActionRequired="false"/>
+ <wsdl:input name="DeliveryRequestStatus">
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="DeliveryRequestStatusACK">
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="GetVersion">
+ <soap12:operation soapAction="GetVersion" soapActionRequired="false"/>
+ <wsdl:input name="GetVersionRequest">
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="GetVersionResponse">
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="Zuse2AppPortService">
+ <wsdl:port name="Zuse2AppPortSoap12" binding="service:Zuse2AppPortSoap12">
+ <soap12:address location="/zuse"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>