Open Ismael opened 6 years ago
Hey Ismael, I have a similar problem with a customer API. How did you proceed, did you find a solution? Regards, Patrick
I'm working with: https://s-api.fifthplay.com/mobile/v7/DeviceService.svc?wsdl and that loads fine with SoapGUI, but I get:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/pthomas/Library/Python/3.6/lib/python/site-packages/zeep/__main__.py", line 92, in <module>
main(args)
File "/Users/pthomas/Library/Python/3.6/lib/python/site-packages/zeep/__main__.py", line 81, in main
client = Client(args.wsdl_file, transport=transport, strict=strict)
File "/Users/pthomas/Library/Python/3.6/lib/python/site-packages/zeep/client.py", line 134, in __init__
self.wsdl = Document(wsdl, self.transport, strict=strict)
File "/Users/pthomas/Library/Python/3.6/lib/python/site-packages/zeep/wsdl/wsdl.py", line 82, in __init__
root_definitions.resolve_imports()
File "/Users/pthomas/Library/Python/3.6/lib/python/site-packages/zeep/wsdl/wsdl.py", line 234, in resolve_imports
binding.resolve(self)
File "/Users/pthomas/Library/Python/3.6/lib/python/site-packages/zeep/wsdl/definitions.py", line 128, in resolve
operation.resolve(definitions)
File "/Users/pthomas/Library/Python/3.6/lib/python/site-packages/zeep/wsdl/bindings/soap.py", line 447, in resolve
self.input.resolve(definitions, self.abstract.input_message)
File "/Users/pthomas/Library/Python/3.6/lib/python/site-packages/zeep/wsdl/messages/soap.py", line 287, in resolve
self.header = self._resolve_header(info['header'], definitions, parts)
File "/Users/pthomas/Library/Python/3.6/lib/python/site-packages/zeep/wsdl/messages/soap.py", line 364, in _resolve_header
message = definitions.get('messages', message_name)
File "/Users/pthomas/Library/Python/3.6/lib/python/site-packages/zeep/wsdl/wsdl.py", line 214, in get
raise IndexError("No definition %r in %r found" % (key, name))
IndexError: No definition '{api.fifthplay.com/mobile/v7/IDeviceService}IDeviceService_GetDevice_InputMessage_Headers' in 'messages' found```
I just used another SOAP client library. PySimpleSoap as I recall worked ok.
That's not exactly what I wanted to hear. ;) But thanks a lot for a quick response!
I'm using Zeep 2.5.0 The WSDL is at: https://gist.github.com/Ismael/67973e62394c80623c56ad7582a88841
The WSDL service is created with Spyne.
Other SOAP client libraries are working with the service.