pythonsoapsoappy

SOAPpy returning an XML string. How do I get the library to parse the xml for me?


I am using SOAPpy, and Dive Into Python http://diveintopython3.ep.io/http-web-services.html says it should be returning a dictionary.
I am making a simple request, that returns an xml response that has the escape characters.

WSDLFILE = 'path/to/my/wsdl'
_server = WSDL.Proxy(WSDLFILE)
print _server.validServerMethod(client,password)

This returns a big ugly str of xml <?xml version="1.0" encoding="utf-8"?><it....

Can anyone help me with getting this to return an already parsed response? Thank you for your time.


Solution

  • I think you need to unescape it : http://wiki.python.org/moin/EscapingHtml