[Tutor] Question regarding xml.dom.minidom: How do you send an unsignedByte in an wsdl request

Stefan Behnel stefan_ml at behnel.de
Fri Jul 22 21:24:24 CEST 2011


Garry Bettle, 22.07.2011 20:18:
> I'm trying some calls to an wsdl API I've subscribed to.

You might find this interesting:

http://effbot.org/zone/element-soap.htm


> But I'm struggling to know what they want when sending an unsignedByte in a
> request.

That's just a number, plain old-fashioned decimal digits.


>       *<xs:complexType name="GetOddsLadderRequest">*
> *<xs:attribute name="PriceFormat" type="xs:unsignedByte" />  *
> *</xs:complexType>*"

In ElementTree, that's just

   request_element = Element("request_tag_name_here", PriceFormat="123")

Stefan



More information about the Tutor mailing list