Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 730
Thierry Lam Avatar asked Oct 28 '10 19:10

Thierry Lam


People also ask

How do you read a WSDL?

Now let's dive into WSDL file, note that a WSDL file should be read from bottom to top (I learned from experience) as from element “Service > binding > PortType > operation > input(req) / Output (resp) > Message > types (fields) details of input and output“.

How do I find the WSDL of a SOAP web service?

The interface to a SOAP web service is captured in WSDL. JAXB provides a way to generate Java classes from WSDL (or rather, the XSD contained in the <Types/> section of the WSDL). You can find the WSDL for the country service at http://localhost:8080/ws/countries.wsdl .


1 Answers

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

like image 113
Gabi Purcaru Avatar answered Sep 23 '22 03:09

Gabi Purcaru