Hello,

This is my first try of soaplib (and first post to this list) and I found some strange (?) behavior when using a Array(String) within a ClassModel

Here is an example :

class Code(ClassModel):
    designations = Array(String)
    refs = Array(Integer)

class CodeManager(DefinitionBase):
    @soap(_returns=Code)
    def list_code(self):
        c = Code()
        c.designations = ['AAA', 'BBB']
        c.refs = [1,3,6]
        return c


now from a suds client, when calling
client.service.list_code()
I get
(Code){
   designations[] =
      (stringArray){
         string[] =
            "A",
            "A",
            "A",
      },
      (stringArray){
         string[] =
            "B",
            "B",
            "B",
      },
   refs =
      (integerArray){
         integer[] =
            1,
            3,
            6,
      }
 }

Why don't I get

   designations[] =
      (stringArray){
         string[] =
            "AAA",
            "BBB",
      },

The test is done with the latest easy_installable version of soaplib.

Tia,

Remi.
_______________________________________________
Soap mailing list
Soap@python.org
http://mail.python.org/mailman/listinfo/soap

Reply via email to