dneise / MeHR

Mews HoKo Reporter
MIT License
0 stars 2 forks source link

get working version of upload to zurich HoKo page #3

Closed dneise closed 6 years ago

dneise commented 6 years ago

I see three ways to upload the excel files to the zurich HoKo page:

SiDAP

zurich police provides a dedicated (Java) client to upload the excel files to the HoKo page. Credentials are stored in that client. MeHR just needs to put the excel file into a certain folder and wait for the SiDAP client to perform the actual upload. This sounds like the most simple solution (on Windows) for the time being, so I will try this first. However I do not know at the moment, how the SiDAP client can support multiple properties (i.e. multiple Hotels) but this needs to be tried, I think.

SOAP via WSDL

Looking at the SiDAP docu I believe it is possible to "reverse engineer" and replicate the upload directly in python using requests and zeep. This would give MeHR total control about the upload process, the multi property "problem" I foresee with the SiDAP client would not be an issue here. And I would learn something about SOAP and WSDL.

direct upload per HTTPS POST

should work as well.

Fake browser using silverlight

As a kind of last resort.

dneise commented 6 years ago

Using SiDAP client