We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2421b34 commit f069bc4Copy full SHA for f069bc4
examples/trafficvance_apikey.py
@@ -0,0 +1,17 @@
1
+from zeep import Client, xsd
2
+
3
+API_KEY_TEST = 'YOUR_OWN_API_KEY'
4
+WSDL_TEST = 'https://apitest.trafficvance.com/?v3=system.wsdl'
5
6
+client = Client(WSDL)
7
+header = xsd.Element(
8
+ '{WSDL_TEST}AuthenticateRequest',
9
+ xsd.ComplexType([
10
+ xsd.Element(
11
+ '{WSDL_TEST}apiKey', xsd.String()
12
+ )
13
+ ])
14
+)
15
+header_value = header(apiKey=API_KEY_TEST)
16
17
+res = client.service.getServerTime(_soapheaders=[header_value])
0 commit comments