notebookVB
This commit is contained in:
@@ -245,17 +245,18 @@ def main():
|
||||
"Content-Type": "text/xml; charset=utf-8",
|
||||
"SOAPAction": "process", # Oracle composite usually expects this
|
||||
}
|
||||
|
||||
print(envelope)
|
||||
# Call service
|
||||
resp = session.post(ENDPOINT, data=envelope.encode("utf-8"),
|
||||
headers=headers, timeout=30, verify=VERIFY)
|
||||
print("HTTP:", resp.status_code)
|
||||
|
||||
# (Optional) Uncomment to see raw XML
|
||||
# print(resp.text)
|
||||
print(resp.text)
|
||||
|
||||
# Parse and save
|
||||
rows, stav = parse_registrace(resp.text)
|
||||
print(rows,stav)
|
||||
upsert_rows(RC, K_DATU, rows, stav, resp.text)
|
||||
|
||||
time.sleep(random.uniform(1, 5))
|
||||
|
||||
Reference in New Issue
Block a user