aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--curl/mzs-delivery-request.xml75
-rwxr-xr-xcurl/send_mzs_dreq_to_container.sh2
-rwxr-xr-xcurl/send_mzs_dreq_to_standalone.sh2
-rw-r--r--readme.md11
4 files changed, 89 insertions, 1 deletions
diff --git a/curl/mzs-delivery-request.xml b/curl/mzs-delivery-request.xml
new file mode 100644
index 0000000..0c1f73e
--- /dev/null
+++ b/curl/mzs-delivery-request.xml
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<soapenv:Envelope
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:mzs="http://reference.e-government.gv.at/namespace/zustellung/mzs/app2mzs#"
+ xmlns:p="http://reference.e-government.gv.at/namespace/zustellung/mzs/persondata#"
+ xmlns:msg="http://reference.e-government.gv.at/namespace/zustellung/msg/phase2/20181206#">
+ <soapenv:Body>
+ <mzs:DeliveryRequest>
+ <mzs:Sender>
+ <p:CorporateBody>
+ <p:Identification>
+ <p:Value>kkvj693+tw99uW8UPuEK9en1LzZItkylPajkUUyJJDWQB78VGPkAuhCEk+TD12yQDD/WRglsf+JfQpjubIs/4l/ptluJ9teF3nwkNlu5Dm7mIjzgW1qxrDyomCmPvVxTWOCBuMUbOWRZBhOq+KvDQAu9Vv9KnqSfjYeDZrpHYu4=</p:Value>
+ <p:Type>urn:publicid:gv:at:cemtoken</p:Type>
+ </p:Identification>
+ <p:FullName>Bundesministerium für Testzwecke</p:FullName>
+ </p:CorporateBody>
+ <mzs:WebserviceURL>https://authority.gv.at/delivery_notification</mzs:WebserviceURL>
+ </mzs:Sender>
+ <mzs:Receiver>
+ <p:PhysicalPerson>
+ <p:Name>
+ <p:GivenName>Maxi</p:GivenName>
+ <p:FamilyName>Mustermann1</p:FamilyName>
+ </p:Name>
+ <p:DateOfBirth>1984-01-24</p:DateOfBirth>
+ </p:PhysicalPerson>
+ <p:PostalAddress>
+ <p:CountryCode>AT</p:CountryCode>
+ <p:PostalCode>1010</p:PostalCode>
+ <p:Municipality>Wien</p:Municipality>
+ <p:DeliveryAddress>
+ <p:StreetName>Muststrasse</p:StreetName>
+ <p:BuildingNumber>10</p:BuildingNumber>
+ </p:DeliveryAddress>
+ </p:PostalAddress>
+ </mzs:Receiver>
+ <msg:MetaData>
+ <msg:AppDeliveryID>delivery-request-id</msg:AppDeliveryID>
+ <msg:Origin>
+ <msg:ParticipantID>VKABC</msg:ParticipantID>
+ </msg:Origin>
+ <msg:Subject>WichtigeMitteilung</msg:Subject>
+ <msg:DeliveryQuality>RSa</msg:DeliveryQuality>
+ </msg:MetaData>
+ <mzs:Payload>
+ <mzs:DocumentReference>https://authority.gv.at/files/73bdf969781ba41fa07df1ff8439cf685c0db1c3</mzs:DocumentReference>
+ <mzs:FileName>brief.xml</mzs:FileName>
+ <mzs:MIMEType>text/xml</mzs:MIMEType>
+ <msg:CheckSum>
+ <msg:AlgorithmID>SHA1</msg:AlgorithmID>
+ <msg:Value>9b972c70fdaf5e1b26b3387c87b0ffb72e5940b6</msg:Value>
+ </msg:CheckSum>
+ <mzs:Size>123401</mzs:Size>
+ </mzs:Payload>
+ <mzs:Config>
+ <mzs:PerformQueryPersonRequest>false</mzs:PerformQueryPersonRequest>
+ <mzs:MsgResponseSinks>
+ <mzs:SaveResponseToFile>
+ <mzs:Active>true</mzs:Active>
+ <mzs:Path>tmp/responses</mzs:Path>
+ </mzs:SaveResponseToFile>
+ <mzs:LogResponse>true</mzs:LogResponse>
+ <mzs:ForwardResponseToService>
+ <mzs:Active>false</mzs:Active>
+ <mzs:AppClient>
+ <mzs:URL>http://localhost/appurl</mzs:URL>
+ <mzs:ConnectionTimeout>0</mzs:ConnectionTimeout>
+ <mzs:ReceiveTimeout>0</mzs:ReceiveTimeout>
+ </mzs:AppClient>
+ </mzs:ForwardResponseToService>
+ </mzs:MsgResponseSinks>
+ </mzs:Config>
+ </mzs:DeliveryRequest>
+ </soapenv:Body>
+</soapenv:Envelope>
diff --git a/curl/send_mzs_dreq_to_container.sh b/curl/send_mzs_dreq_to_container.sh
new file mode 100755
index 0000000..ce80807
--- /dev/null
+++ b/curl/send_mzs_dreq_to_container.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+curl -v --header "Content-Type: text/xml;charset=UTF-8" --header "SOAPAction: \"\"" http://localhost:8080/moa-zs/services/mzs --data-binary @mzs-delivery-request.xml
diff --git a/curl/send_mzs_dreq_to_standalone.sh b/curl/send_mzs_dreq_to_standalone.sh
new file mode 100755
index 0000000..88c2d96
--- /dev/null
+++ b/curl/send_mzs_dreq_to_standalone.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+curl -v --header "Content-Type: text/xml;charset=UTF-8" --header "SOAPAction: \"\"" http://localhost:8080/services/mzs --data-binary @mzs-delivery-request.xml
diff --git a/readme.md b/readme.md
index 1e6a603..a33fcb3 100644
--- a/readme.md
+++ b/readme.md
@@ -6,7 +6,8 @@ See [the technical specification](docs/spec.md) for a more detailed description
## Build Instructions
Compilation and Runtime Requirements:
-- openJDK 12 (OpenJDK 11 has an unfixed bug [1] that prevents the completion of TLS handshakes.)
+- OpenJDK 12 (OpenJDK 11 has an unfixed bug [1] that prevents the completion of TLS handshakes.)
+- Apache Maven (tested with Apache Maven 3.6.0)
### Run Unit Tests
@@ -145,6 +146,14 @@ See [specification.md](docs/spec.md) and [application.yaml](src/test/resources/c
1. The app2mzs service is reachable under <http://localhost:$TOMCAT_PORT/moa-zs/services/mzs>.
The zuse2app service is reachable under <http://localhost:$TOMCAT_PORT/moa-zs/services/msg>.
+## Directory Layout
+
+In this repository you will find the following:
+
+- `src` : MOA ZS source code.
+- `docs` : Documentation.
+- `curl` : Example requests to check if the service is up and running on localhost.
+
# Footnotes
[1] https://bugs.openjdk.java.net/browse/JDK-8214098