Open ghost opened 7 years ago
I used http://lxml.de/api/lxml.etree-module.html#cleanup_namespaces for this before but that introduced bugs where it removed namespaces which were actually used. So it needs to do some smart thing with the keep_ns_prefixed. Need to look at this some time later
Thx :-) Love your work btw Zeep is great
i deleted my other account :-)
Thx :-) Love your work btw Zeep is great
Did you find another solution for your question?
@loreTo87 Afaik this would help as a workaround:
client.set_ns_prefix("ns0", "http://my-target-namespace-here")
since it sets the namespace globally (You'd of course need to know the namespace, but it doesn't look to bad).
I need the namespace to be on the element "soap-env" instead of the element "ns0:submit"
client = Client('wsdl') service = client.create_service( '{http://my-target-namespace-here}myBinding', 'http://my-endpoint.com/acceptance/') response = service.submit(string) print(response)
Need to get:
Zeep generates:
edit: The server can not work with the generated result. Bug on the server side i guess It is possible to work around the problem?
If i use the wsdl in SoapUI, it generates the first envelope example.
I can share the WSDL via a DM if necessary.
Best regards, Bob