You'll likely get more traction on this at http://mail.python.org/mailman/listinfo/xml-sig

Emile


On 7/22/2011 11:18 AM Garry Bettle said...
Howdy all,

Hope this message finds everyone well - roll on the weekend!

I'm trying some calls to an wsdl API I've subscribed to.

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

I'm using xml.dom.minidom so to start with I have:
from xml.dom.minidom import Document, parseString
import httplib, urlparse

And later on I create a doc with:
doc=Document()

And I have a using a little helper to add a text element:
def add_text_element(doc, parent, name, value):
     element=doc.createElement(name)
     element.appendChild(doc.createTextNode(str(value)))
     parent.appendChild(element)

Should I have a separate class for an unsignedByte? i.e. def
add_byte_element

What should it look like?

This is what their API helpdesk have said:

"In this instance, the PriceFormat is defined as an unsignedByte.

/<xs:complexType name="GetOddsLadderRequest">/

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

/</xs:complexType>/"


Many thanks!

Cheers,

Garry


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to