Is it possible to use python suds to read a wsdl file from the file system?

Thierry Lam picture Thierry Lam · Oct 28, 2010 · Viewed 19.7k times · Source

From suds documentation, I can create a Client if I have a url for the WSDL.

from suds.client import Client
url = 'http://localhost:7080/webservices/WebServiceTestBean?wsdl'
client = Client(url)

I currently have the WSDL file on my file system. Is it possible to use suds to read the WSDL file from my file system instead of hosting it on a web server?

Answer

Gabi Purcaru picture Gabi Purcaru · Oct 28, 2010

try to use url='file:///path/to/file'