How to create arrayType for WSDL in Python (using suds)?

后端 未结 3 757

Environment:

  • Python v2.6.2
  • suds v0.3.7

The WSDL (server) I work with, have the following schema sub-sections (I tried to w

3条回答
  •  误落风尘
    2021-02-04 19:36

    I believe what you are looking for is:

    itinerary0 = self.client.factory.create('itinerary')
    itineraryArray = self.client.factory.create('itineraryArray')
    print itineraryArray
    itineraryArray.itinerary.append(itinerary0)
    

    Just had to do this myself;) What helped me find it was printing to the console. That would have probably given you the following:

     (itineraryArray){
       itinerary[] = 
     }
    

    Cheers,Jacques

提交回复
热议问题