Connecting Tech Pros Worldwide Forums | Help | Site Map

WSDL and SSL certification

Newbie
 
Join Date: Nov 2008
Posts: 1
#1: Nov 21 '08
Hi,

I have a problem with processing WSDL file using SOAP.

I want to call Rhapsody webservice using Python.

But i have SSL certification key and cert , how to pass this information when i calling wsdl file.
eg:

Expand|Select|Wrap|Line Numbers
  1. file = 'RhapsodyDirectSearch.wsdl'
  2. file1= "RhapsodyDirectPlayback.wsdl"
  3. server =  WSDL.Proxy(file)
  4. print server.methods.keys()
  5. print "Number is ", server.getVersionString()
  6.  
I am using playback wsdl ,but it required ssl certification, when i call these methods , i get an error like
Expand|Select|Wrap|Line Numbers
  1. File "C:\Python25\Lib\site-packages\SOAPpy\Client.py", line 347, in __call
  2.     config = self.config)
  3.   File "C:\Python25\Lib\site-packages\SOAPpy\Client.py", line 187, in call
  4.     r.endheaders()
  5.   File "C:\Python25\lib\httplib.py", line 860, in endheaders
  6.     self._send_output()
  7.   File "C:\Python25\lib\httplib.py", line 732, in _send_output
  8.     self.send(msg)
  9.   File "C:\Python25\lib\httplib.py", line 699, in send
  10.     self.connect()
  11.   File "C:\Python25\lib\httplib.py", line 1135, in connect
  12.     ssl = socket.ssl(sock, self.key_file, self.cert_file)
  13.   File "C:\Python25\lib\socket.py", line 74, in ssl
  14.     return _realssl(sock, keyfile, certfile)
  15. socket.sslerror: (1, 'error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure')
  16.  
  17. server.startPlaybackSession()
  18.  
How to solve these ....
Please help me

How to pass ssl certificaction to process wsdl file.I am using SOAP method

Please give me answer ,it is very urgent

insertAlias's Avatar
Forum Leader
 
Join Date: Apr 2008
Location: San Antonio, TX (USA)
Posts: 2,608
#2: Nov 21 '08

re: WSDL and SSL certification


Please enclose your posted code in [CODE] [/CODE] tags (See How to Ask a Question). Code tags preserve indention and uses a monospaced font.

This makes it easier for our Experts to read and understand it. Failing to do so creates extra work for the moderators, thus wasting resources, otherwise available to answer the members' questions.

Please use [CODE] [/CODE] tags in future.

MODERATOR
Reply


Similar Python bytes