How can I use wsdl url in python

I want to use data from the WSDL URL, I don't know how to do this in python.

Can someone help me with an example

here is the WSDL link for reference: http://43.242.214.173/cwplservice/cwplonline.svc?wsdl

Here is a snippet of code that I tried.

from suds.client import Client
from suds.xsd.doctor import Import, ImportDoctor

url = 'http://43.242.214.173/cwplservice/cwplonline.svc?wsdl' 
imp = Import('http://212.235.42.50/WebService/service.php?class=masterPricer', location='https://www.w3.org/2001/XMLSchema.xsd') 
imp.filter.add('http://www.w3.org/2001/XMLSchema')
client = Client(url, doctor=ImportDoctor(imp))
print client

when I run the code, I get the following error: suds.TypeNotFound: Type not found: '(schema, http://www.w3.org/2001/XMLSchema ,)'

+4
source share
1 answer

PySimpleSOAP? , SOAP XML- . XML- , , XML, xml.etree.ElemenTree.

https://pypi.python.org/pypi/PySimpleSOAP/1.02b

0

All Articles