相关疑难解决方法(0)

使用Python解析XML SOAP响应

我想从SOAP解析这个响应并在以下之间提取文本<LoginResult>:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
     <soap:Body>
      <LoginResponse xmlns="http://tempuri.org/wsSalesQuotation/Service1">
        <LoginResult>45eeadF43423KKmP33</LoginResult>
      </LoginResponse>
     </soap:Body>
</soap:Envelope>
Run Code Online (Sandbox Code Playgroud)

我如何使用XML Python Libs来做到这一点?

python xml soap

2
推荐指数
1
解决办法
2万
查看次数

标签 统计

python ×1

soap ×1

xml ×1