python-zeep icon indicating copy to clipboard operation
python-zeep copied to clipboard

using zeep without WSDL

Open LeoWelter opened this issue 4 years ago • 3 comments

I have to work with an endpoint that does not serve a valid wsdl file and the maintainer of the endpoint is not responding client=Client(wsdl=<url>) crashes with a 500 error

however the endpoint itself id working. However, the request xml is simple enough to build my own. Is there a way to initiate a client without wsdl file and subsequently call the service with the prebuild xml? something along the line as in #1130

If I can get hold of the wsdl as file, can I load it as local file as well?

LeoWelter avatar Dec 10 '20 15:12 LeoWelter

You can certainly use a local wsdl file. e.g. client = Client(str(Path.home() / 'foo.wsdl'))

bookbound avatar Dec 11 '20 12:12 bookbound

Thanks, in between we managed to get hold of the WSDL files, so I'm very happy

LeoWelter avatar Dec 13 '20 11:12 LeoWelter

I have the same problem, all I have is a template XML that is accepted by the soap server, but the server (actually, several different servers) won't give a proper WSDL on the service URL. The old code uses soap_wsse.sign_envelope(envelope_xml_text, key_file) to add a BinarySecurityToken, which I'd like to replace by zeep.

andreas-p avatar Feb 24 '23 11:02 andreas-p