开发者

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" encod开发者_开发知识库ing="utf-8"?><it....

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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜