I'm not sure whether I'll be able to help, but can you post your Python
code?
Luc
On 11.06.2012 16:42, Chris Guin wrote:
Hi -
So I'm trying to use suds to connect to a service over which I have no
control. I have to send a subscription request containing one or more
"Filter" tags. The service uses the tag name of the Filter tag to
determine what kind of Filter is being requested, but there are no
attributes or enclosed tags in the Filter tag. For whatever reason,
suds seems to be dropping the Filter tag in its entirety. When I print
the tag, it just says <empty>. If I send it anyway, the service says
there were no filters specified. If I add a random attribute, the tag
is no longer <empty>, but suds refuses to send it, saying that the type
was not found.
What I'd like to send is this:
(SubscribeToRequestContentType){
Filters =
(ArrayOfFilter){
Filter[] =
(TrueFilter){}
}
}
Instead of this:
(SubscribeToRequestContentType){
Filters =
(ArrayOfFilter){
Filter[] =
<empty>
}
}
The xsd for the TrueFilter object looks like this:
<xsd:complexType name="TrueFilter">
<xsd:complexContent>
<xsd:extension base="mdl:Filter">
<xsd:sequence/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="TrueFilter" type="mdl:TrueFilter"/>
which inherits from Filter, which looks like:
<xsd:complexType name="Filter" abstract="true">
<xsd:sequence/>
</xsd:complexType>
<xsd:element name="Filter" type="mdl:Filter"/>
Any ideas? Thanks for any help!
Chris
_______________________________________________
suds mailing list
suds(a)lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/suds