Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#2 Problem using wsdl2py...

closed
nobody
None
5
2003-10-28
2003-09-18
Brendan Rankin
No

Hello,

I am trying to use ZSI, more specifically 'wsdl2py' to
generate
my complex types using a WSDL file provided by the
company I'm trying to interface to: SalesForce.com.

I've attached the wsdl file (called wsdl) [also
available at http://www.sforce.com/wsdl\] and here's
what I get on the screen:

99> /usr/bin/wsdl2py -f ~/wsdl
Traceback (most recent call last):
File "/usr/bin/wsdl2py", line 69, in ?
main()
File "/usr/bin/wsdl2py", line 65, in main
wsm.write()
File
"/usr/lib/python2.3/site-packages/ZSI/wsdl2python.py",
line 154, in write
self.write_service_types(f_types, fd)
File
"/usr/lib/python2.3/site-packages/ZSI/wsdl2python.py",
line 197, in write_service_types
self.write_dependent_schema(schema, fd)
File
"/usr/lib/python2.3/site-packages/ZSI/wsdl2python.py",
line 266, in write_dependent_schema
sd.fromWsdl(schema, alternateWriter)
File
"/usr/lib/python2.3/site-packages/ZSI/wsdl2python.py",
line 784, in fromWsdl
self.generate(schema.getTypesDict(), alternateWriter)
File
"/usr/lib/python2.3/site-packages/ZSI/wsdl2python.py",
line 810, in generate
tw.fromType(tp)
File
"/usr/lib/python2.3/site-packages/ZSI/wsdl2python.py",
line 882, in fromType
self._fromComplexType(tp)
File
"/usr/lib/python2.3/site-packages/ZSI/wsdl2python.py",
line 1058, in _fromComplexType
self._complexTypeComplexContent(tp)
File
"/usr/lib/python2.3/site-packages/ZSI/wsdl2python.py",
line 1147, in _complexTypeComplexContent
arrayinfo = dt.getArrayType()
File
"/usr/lib/python2.3/site-packages/ZSI/wsdlInterface.py",
line 1712, in getArrayType
raise WsdlInterfaceError, 'could not determine
array type'
ZSI.wsdlInterface.WsdlInterfaceError: could not
determine array type

Any ideas?

TIA,

- Brendan

P.S.: I do get the "start" of the file that wsdl2py is
supposed to create:
##################################################
# salesforce_services_types.py
# generated by ZSI.wsdl2python
#
#
##################################################

import ZSI
from ZSI.TCcompound import Struct

Discussion

  • Brendan Rankin
    Brendan Rankin
    2003-09-18

    wsdl file from SalesForce.com

     
    Attachments
  • Logged In: YES
    user_id=711996

    This has been fixed, the _services and _types file are
    generated correctly. Please try it again.

     
  • Keith Jackson
    Keith Jackson
    2003-10-28

    • status: open --> closed
     
  • Brendan Rankin
    Brendan Rankin
    2003-10-29

    Logged In: YES
    user_id=869218

    It works just fine now.

    Thanks!

    - Brendan