Hello,
sorry about this newbie question:
One oft the arguments of a service has type ArrayOfString.
<Complex:0x85992cc name="ArrayOfString">
<ComplexContent:0x859936c>
<Restriction:0x859946c ref="[u'soapenc:Array', False]">
<Attribute:0x860f66c name="arrayType"
ref="[u'tns:arrayType',
False]" type="xs:string" />@
<Attribute:0x860f74c name="offset"
ref="[u'tns:offset', False]"
type="tns:arrayCoordinate" />@
<Attribute:0x860f2ec name="id" ref="[None, False]"
type="xs:ID"
/>@
<Attribute:0x860f3cc name="href" ref="[None, False]"
type="xs:anyURI" />@
<Attribute:0x859956c name="arrayType"
ref="[u'soapenc:arrayType', False]" type="xs:string" />@
<Any:0x860fa6c />
</Restriction>
</ComplexContent>
</Complex>
I don't know how to assign a value to a variable of this type.
client = Client(url)
altNames = client.factory.create('ArrayOfString')
Assigning ['string'] sends to the server
<AltNames xsi:type="ArrayOfString">string</AltNames>
with answer:
Application failed during request deserialization: Unspecified namespace for
type 'ArrayOfString'
Thanks in advance.
Stefan
_______________________________________
Georg-August-Universität Göttingen
Stiftung Öffentlichen Rechts
Stabsstelle Datenverarbeitung
Goßlerstraße 5/7
37073 Göttingen
Telefon 0551 / 39-4160
Fax 0551 / 39-184160
E-Mail stefan.witzel(a)zvw.uni-goettingen.de
Attachments:
- smime.p7s
(application/x-pkcs7-signature — 5.9 KB)
Show replies by date