Difference between revisions of "E-Boks doc2mail"
Jump to navigation
Jump to search
old>Admin (Created page with " == Install components == Before you start ensure Java 8 is the default === Certificate === Ensure you have a valid certificate sudo nano /mnt/sda/certs/doc2mail.pke Copy...") |
old>Admin |
||
Line 31: | Line 31: | ||
java -cp .:/mnt/sda/deploy/doc2mail/* dk.doc2mail.client.FileUploaderClient --address "https://privat.doc2mail.dk/delivery/FileUploader.asmx" --certificate "/mnt/sda/certs/doc2mail.pke" -i "/tmp/eboks_test.pdf" --title "Oplysningsskemaet - et fælles redskab for dig og os" -d ebokskmdprint -u "domainX\userY" -t "tempus serva" --ss "Oplysningsskema" --testmode 3 -r 1234561234 --rt CPR | java -cp .:/mnt/sda/deploy/doc2mail/* dk.doc2mail.client.FileUploaderClient --address "https://privat.doc2mail.dk/delivery/FileUploader.asmx" --certificate "/mnt/sda/certs/doc2mail.pke" -i "/tmp/eboks_test.pdf" --title "Oplysningsskemaet - et fælles redskab for dig og os" -d ebokskmdprint -u "domainX\userY" -t "tempus serva" --ss "Oplysningsskema" --testmode 3 -r 1234561234 --rt CPR | ||
A success messag will look something like | |||
<uploadStatus> | |||
<deliveryInformation> | |||
<destination>5</destination> | |||
<errorCode>0</errorCode> | |||
<id>148069122</id> | |||
<mailPriority>B</mailPriority> | |||
<responseInfo>No response</responseInfo> | |||
<status>OK</status> | |||
<succeeded>true</succeeded> | |||
</deliveryInformation> | |||
<message>OK</message> | |||
<success>true</success> | |||
<time>3379</time> | |||
</uploadStatus> |
Revision as of 07:35, 25 February 2020
Install components
Before you start ensure Java 8 is the default
Certificate
Ensure you have a valid certificate
sudo nano /mnt/sda/certs/doc2mail.pke
Copy paste contents of the certificate
sudo chmod 777 /mnt/sda/certs/doc2mail.pke
Binaries
Download OneTooX implementation
cd /mnt/sda/deploy sudo wget https://www.tempusserva.dk/install/doc2mail/doc2mail.zip unzip doc2mail.zip sudo mv lib doc2mail cd doc2mail sudo chmod 777 *
Test setup
Update the parameters below
- i: Location of a test PDF
- t: Name of the document type
- r: A real CPR number
Execute the following command
java -cp .:/mnt/sda/deploy/doc2mail/* dk.doc2mail.client.FileUploaderClient --address "https://privat.doc2mail.dk/delivery/FileUploader.asmx" --certificate "/mnt/sda/certs/doc2mail.pke" -i "/tmp/eboks_test.pdf" --title "Oplysningsskemaet - et fælles redskab for dig og os" -d ebokskmdprint -u "domainX\userY" -t "tempus serva" --ss "Oplysningsskema" --testmode 3 -r 1234561234 --rt CPR
A success messag will look something like
<uploadStatus> <deliveryInformation> <destination>5</destination> <errorCode>0</errorCode> <id>148069122</id> <mailPriority>B</mailPriority> <responseInfo>No response</responseInfo> <status>OK</status> <succeeded>true</succeeded> </deliveryInformation> <message>OK</message> <success>true</success> </uploadStatus>