notebookvb
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
from requests_pkcs12 import Pkcs12Adapter
|
||||
import requests
|
||||
import sys
|
||||
import uuid
|
||||
from datetime import date
|
||||
|
||||
@@ -108,14 +109,14 @@ class VZPB2BClient:
|
||||
|
||||
headers = {"Content-Type": "text/xml; charset=utf-8"}
|
||||
|
||||
print(f"Calling: {endpoint}")
|
||||
print(f"Calling: {endpoint}", file=sys.stderr, flush=True)
|
||||
response = self.session.post(
|
||||
endpoint,
|
||||
data=soap.encode("utf-8"),
|
||||
headers=headers,
|
||||
timeout=30
|
||||
)
|
||||
print("HTTP:", response.status_code)
|
||||
print("HTTP:", response.status_code, file=sys.stderr, flush=True)
|
||||
return response.text
|
||||
|
||||
def stav_pojisteni(self, rc: str, k_datu: str = None, prijmeni: str = None):
|
||||
@@ -156,10 +157,10 @@ class VZPB2BClient:
|
||||
"SOAPAction": "process"
|
||||
}
|
||||
|
||||
print(f"Calling: {endpoint}")
|
||||
print(f"Calling: {endpoint}", file=sys.stderr, flush=True)
|
||||
resp = self.session.post(endpoint, data=soap.encode("utf-8"),
|
||||
headers=headers, timeout=30)
|
||||
print("HTTP:", resp.status_code)
|
||||
print("HTTP:", resp.status_code, file=sys.stderr, flush=True)
|
||||
return resp.text
|
||||
|
||||
def registrace_lekare(self, rc: str, k_datu: str = None,
|
||||
|
||||
Reference in New Issue
Block a user