Python:如何解析肥皂要求?
但是,我有以下肥皂要求
<env:Envelope
xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Header/>
<env:Body>
<ns2:authenticateUserResponse
xmlns:ns2="http://www.orionhealth.com/com.orchestral.portal.webservice.api_7_2.user/">
<ns2:return>
<ns2:authenticated>true</ns2:authenticated>
<ns2:authoritativeUserId>fusion.support</ns2:authoritativeUserId>
</ns2:return>
</ns2:authenticateUserResponse>
</env:Body>
</env:Envelope>
对我的生命,我看不到它
root = ET.fromstring(string_above_here)
prefix_map = {
"env": "http://www.w3.org/2003/05/soap-envelope",
"ns2": "http://www.orionhealth.com/com.orchestral.portal.webservice.api_7_2.user/",
}
return jsonify(root.findall(".//env:Envelope/env:Body/ns2:authenticateUserResponse/ns2:return/ns2:authenticated",prefix_map))
如何返回 agen验证
的值?
谢谢
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这似乎已经做到了
This seem to have done the trick