Invalid WSDL generation

Bug #861193 reported by azurit
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ladon
Fix Committed
Undecided
Unassigned

Bug Description

I'm unable to get complex types working with SUDS SOAP client. I'm even unable to return an array (python list), always getting this error:
suds.TypeNotFound: Type not found: 'item'

XML:
<?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="urn:test" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><ns:testResponse><result><item>aa</item><item>ff</item></result></ns:testResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

Is it really supposed to work ? I failed to find any client which is working with Ladon :(

Revision history for this message
jsgaarde (jakob-simon-gaarde) wrote :

Thanks for this report.

The bug turned out to be related with the wsdl generation and not the response object.
When defining LadonType classes with "_" in the class name, the wsdl generator replaced "_" with "-" for ComplexType attribute "name". Then later in the wsdl file when the ComplexType was to be used as element type the replacement was not done. The effect was orphaned ComplexTypes and element references to non-existing complex types.

The very simple bug-fix is attached to this bug.

Changed in ladon:
status: New → Confirmed
Revision history for this message
jsgaarde (jakob-simon-gaarde) wrote :

Azurit - Can you confirm that the fix solves the problem?

Revision history for this message
azurit (azurit) wrote :

problem is fixed, thnx!

Changed in ladon:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.