This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Logs on to Kronos WFC using an XML request | |
# Written as an example for https://stackoverflow.com/a/46776518/3357935 | |
import requests | |
url = "http://localhost/wfc/XmlService" | |
headers = {'Content-Type': 'text/xml'} | |
data = """<Kronos_WFC version = "1.0"> | |
<Request Object="System" Action="Logon" Username="SomeUsername" Password="SomePassword" /> | |
</Kronos_WFC>""" |