KenyaDonDraper / pysimplesoap

Automatically exported from code.google.com/p/pysimplesoap
0 stars 0 forks source link

Unable to use Salesforce WSDL #57

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
import pysimplesoap.client
WSDL = 'sfdc_enterprise_v20.wsdl'
client = pysimplesoap.client.SoapClient(wsdl=WSDL, timeout=None)

What is the expected output? What do you see instead?
>>> 
WSDL="file:///C:\\temp\\pysimplesoap\\configs\\sfdc\\sfdc_enterprise_v20.wsdl"
>>> client = pysimplesoap.client.SoapClient(wsdl=WSDL)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\bmacauley\AppData\Roaming\Python\Python27\site-packages\pysimplesoap\client.py", li
ne 106, in __init__
    self.services = wsdl and self.wsdl_parse(wsdl, debug=trace, cache=cache)
  File "C:\Users\bmacauley\AppData\Roaming\Python\Python27\site-packages\pysimplesoap\client.py", li
ne 612, in wsdl_parse
    postprocess_element(elements)
  File "C:\Users\bmacauley\AppData\Roaming\Python\Python27\site-packages\pysimplesoap\client.py", li
ne 592, in postprocess_element
    postprocess_element(v)
  File "C:\Users\bmacauley\AppData\Roaming\Python\Python27\site-packages\pysimplesoap\client.py", li
ne 592, in postprocess_element
    postprocess_element(v)....

.......  
 line 110, in items
    return [(key, self[key]) for key in self.__keys]
RuntimeError: maximum recursion depth exceeded while calling a Python object

Full error log is attached...3000 lines!

What version of the product are you using? On what operating system?
ActivePython 2.7.1.4
pysimplesoap==1.05a
sfdc_enterprise_v20.wsdl ...attached

Please provide any additional information below.

Original issue reported on code.google.com by brian.macauley on 4 Mar 2012 at 12:33

Attachments:

GoogleCodeExporter commented 9 years ago
This wdsl seems to be too complex, you can use raw xml objects in this cases.
I'll add it as a test, but I don't have time right now to fix it.

Original comment by reingart@gmail.com on 18 Apr 2012 at 7:39

GoogleCodeExporter commented 9 years ago
The error is fixed in the latest developement version 1.12, but user 
credentials are need to fully test (it seems to be parsing and making the xml 
correctly)
Please download and test the latest source code from the repository until the 
release:

https://pysimplesoap.googlecode.com/archive/default.zip

Added a test in revision df89f6571946

Original comment by reingart@gmail.com on 22 Jan 2014 at 3:05