from suds.client import Client url = 'http://www.webservicex.net/globalweather.asmx?WSDL' client = Client(url) print(client.dict())
from suds.client import Client url = 'http://www.dneonline.com/calculator.asmx?WSDL' client = Client(url) result = client.service.Add(a=1, b=2) print(result)In this example, we are creating a new Client object for a web service that provides a calculator. We then use the client.service.Add() method to call the Add method of the web service and pass in two parameters. The result of the calculation is stored in the result variable and printed to the console. The package library used in these examples is suds.