I am trying to run workflows using Python but it throws SSL Handshake error. The same code works with vCO5.5 but it fails with vRO6.0
headers = {'Content-Type':'application/xml','Accept':'application/xml'}
url = 'https://' + vroServer + '/vco/api/workflows/' + wfid + '/executions'
data = open(xmlFile).read()
# NOTE: verify=False tells Python to ignore SSL Cert issues
# Execute a workflow using a xml file for the body:
r = requests.post(url, data=data, verify=False, auth=vroAuth, headers=headers)
Error:
Traceback (most recent call last):
File "C:\Python27\AddWebServiceHost.py", line 35, in <module>
r = requests.post(url, data=data, verify=False, auth=vroAuth, headers=headers)
File "C:\Python27\lib\site-packages\requests-2.7.0-py2.7.egg\requests\api.py", line 109, in post
return request('post', url, data=data, json=json, **kwargs)
File "C:\Python27\lib\site-packages\requests-2.7.0-py2.7.egg\requests\api.py", line 50, in request
response = session.request(method=method, url=url, **kwargs)
File "C:\Python27\lib\site-packages\requests-2.7.0-py2.7.egg\requests\sessions.py", line 465, in request
resp = self.send(prep, **send_kwargs)
File "C:\Python27\lib\site-packages\requests-2.7.0-py2.7.egg\requests\sessions.py", line 573, in send
r = adapter.send(request, **kwargs)
File "C:\Python27\lib\site-packages\requests-2.7.0-py2.7.egg\requests\adapters.py", line 431, in send
raise SSLError(e, request=request)
SSLError: [Errno 1] _ssl.c:499: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
>>>