Python的http请求(wsdl)并解析返回的xml串

来源:互联网 发布:在淘宝开网店怎么样 编辑:程序博客网 时间:2024/06/09 23:44

from suds.client import Client

import xml.etree.ElementTree as ET

url= "http://10.228.200.253:8081/JKService/webservices/***?wsdl"

client = Client(url)
xml_result=client.service.***(xml_data)

 #解析返回的XML字符串

str_value = ET.fromstring(xml_result)
resultCode = str_value.find("resultCode").text

阅读全文
0 0
原创粉丝点击