#4 wsdl2py crash on a more sophisticated WSDL.

closed
nobody
None
5
2004-05-07
2003-11-28
Brendan Rankin
No

I am getting the following error when using wsdl2py:

144> wsdl2py -f partner.wsdl
Traceback (most recent call last):
File "/usr/bin/wsdl2py", line 118, in ?
main()
File "/usr/bin/wsdl2py", line 104, in main
wsdl = reader.loadFromFile(args_d['wsdl'])
File
"/usr/lib/python2.3/site-packages/ZSI/wstools/WSDLTools.py",
line 48, in loadFromFile
wsdl = self.loadFromStream(file)
File
"/usr/lib/python2.3/site-packages/ZSI/wstools/WSDLTools.py",
line 29, in loadFromStream
wsdl.load(document)
File
"/usr/lib/python2.3/site-packages/ZSI/wstools/WSDLTools.py",
line 195, in load
binding.load(operations)
File
"/usr/lib/python2.3/site-packages/ZSI/wstools/WSDLTools.py",
line 488, in load
mbinding.load_ex(GetExtensions(item))
File
"/usr/lib/python2.3/site-packages/ZSI/wstools/WSDLTools.py",
line 609, in load_ex
ob = SoapBodyBinding(use, namespace, encstyle, parts)
File
"/usr/lib/python2.3/site-packages/ZSI/wstools/WSDLTools.py",
line 780, in __init__
raise WSDLError(
ZSI.wstools.WSDLTools.WSDLError: The parts argument
must be a sequence.

I have attached a sample WSDL file for enterprise
access to Salesforce.com. I was able to get this
working in both Java and .NET, but prefer to program in
Python. It would be great if I could get in going there.

Thanks,

- Brendan

Discussion

  • Brendan Rankin
    Brendan Rankin
    2003-11-28

    enterprise.wsdl for access for Salesforce.com

     
    Attachments
  • Keith Jackson
    Keith Jackson
    2003-12-06

    • status: open --> pending
     
  • Keith Jackson
    Keith Jackson
    2003-12-06

    Logged In: YES
    user_id=711889

    Brendan,
    just confirmed this blows up for me the same way. We'll try
    to get this fixed next week.
    --keith

     
  • Logged In: YES
    user_id=711996

    I fixed the bug you are reporting, however, there is another
    issue with the "name" attribute of the soap:fault elements.
    This attribute is not specified in your wsdl.. From
    section 3.6 of WSDL-1.1 I think it is required, which is why
    an exception is being thrown. Unfortanetly I can not verify
    this with the XML schema description of soap bindings
    because it doesn't include a "name" attribute in a FaultType
    type. I emailed the wws list about this incongruity, and
    await their final judgement.

     
  • Brendan Rankin
    Brendan Rankin
    2003-12-08

    Logged In: YES
    user_id=869218

    Thanks!! I'll mention the lack of the name attribute on the
    fault elements to the Salesforce guys, as well.

    All in all, I think it's pretty close. I need to have WSDL up
    and going because things are likely to be changing rapidly
    within their API in the next few months. Plus, we're likely to
    be changing the data types and objects within our data store
    on Salesforce.

    Best Regards and Thanks, again,

    - Brendan

     
  • Brendan Rankin
    Brendan Rankin
    2003-12-08

    • status: pending --> open
     
  • Keith Jackson
    Keith Jackson
    2004-05-07

    • status: open --> closed