aboutsummaryrefslogtreecommitdiff
path: root/curl/erv-notification-to-msg
diff options
context:
space:
mode:
Diffstat (limited to 'curl/erv-notification-to-msg')
-rw-r--r--curl/erv-notification-to-msg/notification.xml96
-rwxr-xr-xcurl/erv-notification-to-msg/to_standalone.sh2
2 files changed, 98 insertions, 0 deletions
diff --git a/curl/erv-notification-to-msg/notification.xml b/curl/erv-notification-to-msg/notification.xml
new file mode 100644
index 0000000..3e9c638
--- /dev/null
+++ b/curl/erv-notification-to-msg/notification.xml
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<soapenv:Envelope
+ xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"
+ xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"
+ xmlns:p="http://reference.e-government.gv.at/namespace/persondata/phase2/20181206#"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:msg="http://reference.e-government.gv.at/namespace/zustellung/msg/phase2/20181206#">
+ <soapenv:Body>
+ <msg:DeliveryNotification>
+ <msg:DeliverySystem>delivery-system</msg:DeliverySystem>
+ <msg:ZSDeliveryID>zs-delivery-id-01</msg:ZSDeliveryID>
+ <msg:AppDeliveryID>app-delivery-id-01</msg:AppDeliveryID>
+ <msg:GZ>1001</msg:GZ>
+ <msg:SenderDetails>
+ <p:Identification>
+ <p:Value>12345</p:Value>
+ <p:Type>678910</p:Type>
+ </p:Identification>
+ <p:CorporateBody>
+ <p:FullName>Bundesministerium für Testzwecke</p:FullName>
+ </p:CorporateBody>
+ </msg:SenderDetails>
+ <msg:ReceiverDetails>
+ <p:Identification>
+ <p:Value>123</p:Value>
+ <p:Type>654654</p:Type>
+ </p:Identification>
+ <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>
+ </msg:ReceiverDetails>
+ <msg:Timestamp>2002-05-30T09:00:00</msg:Timestamp>
+ <msg:ERVConfirmedDelivery>
+ <msg:ERVCode>token256-123</msg:ERVCode>
+ <msg:ERVDeliveryTimestamp>2002-05-30T09:00:00</msg:ERVDeliveryTimestamp>
+ </msg:ERVConfirmedDelivery>
+ <dsig:Signature xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" Id="signature-1-1">
+ <dsig:SignedInfo>
+ <dsig:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
+ <dsig:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
+ <dsig:Reference Id="reference-1-1" URI="">
+ <dsig:Transforms>
+ <dsig:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
+ <dsig:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
+ </dsig:Transforms>
+ <dsig:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
+ <dsig:DigestValue>ejvUI0yh/IIyauFe8x5ZonD/i5oznl8vFyS3oLNivzA=</dsig:DigestValue>
+ </dsig:Reference>
+ </dsig:SignedInfo>
+ <dsig:SignatureValue>
+ hmVZrLkMDbXaRLYQKOaV3OtK13TQgMu3csKyw9M4zWqNyva1yxnYkzoX3dKDOdc9
+ O56yQJsjoA3Cuw7pXlGO7jSfVM77dTXbWSDaF95O9Vdsrmr7R6Uki0jA9SmgQLXg
+ hZAUG8JpsHcBn8M0L2BXADKjSn0LuMDL2L7dmU3EM7eRy+OvFwDrXDw1fhjQO6L2
+ KoflAWLgUerDhJSpzr0+YfmkrjzitLUA7oIg8ieOnfGyql31ECmDJEqgnL78hyPZ
+ KaNZImDf3EWFs8je6mt+os1TwsyXYwz+GGbjoDR8lGTS9xVqnXdrgP8Jyv6p9FEu
+ 0IYgSY2FlbI3skPZC8ZVXg==
+ </dsig:SignatureValue>
+ <dsig:KeyInfo>
+ <dsig:X509Data>
+ <dsig:X509Certificate>
+ MIIEqz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R1Z3Jh
+ ei5hdC9jYXBzby9jcmxzL0lBSUtUZXN0X0ludGVybWVkaWF0ZUNBLmNybDCBqgYI
+ KwYBBQUHAQEEgZ0wgZowSgYIKwYBBQUHMAGGPmh0dHA6Ly9jYS5pYWlrLnR1Z3Jh
+ ei5hdC9jYXBzby9PQ1NQP2NhPUlBSUtUZXN0X0ludGVybWVkaWF0ZUNBMEwGCCsG
+ AQUFBzAChkBodHRwOi8vY2EuaWFpay50dWdyYXouYXQvY2Fwc28vY2VydHMvSUFJ
+ S1Rlc3RfSW50ZXJtZWRpYXRlQ0EuY2VyMCEGA1UdEQQaMBiBFnRob21hcy5sZW56
+ QGVnaXouZ3YuYXQwHwYDVR0jBBgwFoAUaKJeEdreL4BrRES/jfplNoEkp28wDQYJ
+ KoZIhvcNAQEFBQADgYEAlFGjUxXLs7SAT8NtXSrv2WrjlklaRnHTFHLQwyVo8JWb
+ gvRkHHDUv2o8ofXUY2R2WJ38dxeDoccgbXrJb/Qhi8IY7YhCwv/TuIZDisyAqo8W
+ ORKSip/6HWlGCSR/Vgoet1GtCmF0FoUxFUIGSAuQ2yyt4fIzt5GJrU1X5ujjI1w=
+ </dsig:X509Certificate>
+ </dsig:X509Data>
+ </dsig:KeyInfo>
+ </dsig:Signature>
+ </msg:DeliveryNotification>
+ </soapenv:Body>
+</soapenv:Envelope>
diff --git a/curl/erv-notification-to-msg/to_standalone.sh b/curl/erv-notification-to-msg/to_standalone.sh
new file mode 100755
index 0000000..1b7e96b
--- /dev/null
+++ b/curl/erv-notification-to-msg/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/msg --data-binary @notification.xml