Python的http请求(wsdl)并

发布时间:2019-09-02 07:59:21编辑:auto阅读(2177)

    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

关键字