suds-community / suds

Suds is a lightweight SOAP python client for consuming Web Services. A community fork of the jurko fork.
https://suds.readthedocs.io/
GNU Lesser General Public License v3.0
172 stars 54 forks source link

client factory return <empty> #49

Closed k4s0 closed 3 years ago

k4s0 commented 3 years ago

good morning,

I was making a soap client with suds while running the factory like this:

domicilio = client.factory.create('ns0:Domicilio')
(Domicilio){
   indirizzo = None
   tipoAbitazione = None
   annoInizioAbitazione = None
   costoAbitazione = None
 }

.....is OK

if I try another one:

venditore = client.factory.create('ns0:VenditoreId')

this is the return:

" empty"

the xml that define ns0:VenditoreId is:

<xsd:complexType name="VenditoreId">
                                <xsd:sequence>
                                        <xsd:element maxOccurs="1" minOccurs="1" name="codice" type="xsd:string">
                                                <xsd:annotation>
                                                        <xsd:documentation>
                                                                xxxx some description
                                                        </xsd:documentation>
                                                </xsd:annotation>
                                        </xsd:element>
                                </xsd:sequence>
                        </xsd:complexType>
phillbaker commented 3 years ago

Hi @k4s0, can you link (or provide if protected) the wsdl/xsd you're having issues with? Otherwise, it's hard to reproduce this issue and write a test case to reproduce it.

phillbaker commented 3 years ago

Hi @k4s0 without further details, I'm going to close this issue as not reproducible. Please reopen if you can provide further details.