Python的http请求(wsdl)并

2023-01-31 04:01:12 python http 请求

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

相关文章