GuardTek API - проблема с отсылкой

Я использую API GuardTek, которые находятся в SOUP. Я использую их документы, но у меня возникают проблемы с их пониманием. https://s3.guardtek.net/Report/WebServices/SettingsService.asmx

Я хочу использовать API https://s3.guardtek.net/Report/WebServices/SettingsService.asmx?op=GetShiftDetails GetShiftInfo, но я не могу понять, что означает Reference и где я могу его найти. Ниже приведен мой код.


url = "https://s3.guardtek.net/Report/WebServices/SettingsService.asmx"
payload = """

<?xml version="1.0" encoding="utf-8"?>
                <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
                  <soap:Body>
                    <GetShiftDetails xmlns="http://www.alphasystem.fr/WebServices/GuardTek/Settings">
                      <apiKey>XXX-XXX-XXX</apiKey>
                      <startDateUtc>1670232908</startDateUtc>
                      <endDateUtc>1670243708</endDateUtc>
                      <includeBreakList>false</includeBreakList>
                      <userReference>salman</userReference>
                      <guardroomReference>NADEEM Muhammad</guardroomReference>
                      <shiftReference>salman</shiftReference>
                    </GetShiftDetails>
                  </soap:Body>
                </soap:Envelope>


        """
headers = {
    'Content-Type': 'text/xml; charset=utf-8'
}
response = requests.request("POST", url, headers=headers, data=payload)


В ответ я получаю следующее. Пустые данные.

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetShiftDetailsResponse xmlns="http://www.alphasystem.fr/WebServices/GuardTek/Settings" /></soap:Body></soap:Envelope>

Я хочу знать, что означает ссылка здесь и как я могу найти ее

Я пробовал указывать поддельные имена в параметрах ссылки и получал ответ 200. Но данные пустые.

Вернуться на верх