[Soap-Python] problem trying to construct message in suds with <xsd:sequence .. namespace="##any"/>
Dawa Lama
dawalama at gmail.com
Tue Oct 19 21:11:50 CEST 2010
Hello All,
I am trying to use Suds to interact with third party SOAP service. I have
extracted out one of the types in wsdl I am having trouble with.
<xsd:complexType name="Content">
<xsd:sequence>
<xsd:any maxOccurs="1" minOccurs="1" namespace="##any"/>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:ID" use="required"/>
<xsd:anyAttribute/>
</xsd:complexType>
When I try to do the following :
> content = client.factory.create('ns0:Content')
> print content
(Content){
_id = ""
}
My problem:
How do I add content to this object 'content'. For eg, I want to have
something like this
<Content id="x">
<something_else_here/>
</Content>
It seems like I can only assign the 'id'.
Please help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/soap/attachments/20101019/ddc210e7/attachment.html>
More information about the Soap
mailing list