Thursday, September 22, 2016

Making requests with SOAP using Python SUDS


You may need to install SUDS first by typing
pip install suds
in the command line mode (Windows)

from suds.client import Client

url="https://example.edu/xxx/service?wsdl"

client=Client(url)


method_list = [method for method in client.wsdl.services[0].ports[0].methods]

print method_list


orgchart = client.service.getOrgHierachary(deptNo="1000")

print orgchart