Thierry Lam Thierry Lam -4 years ago 133
Python Question

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

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 Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download