akretion / nfselib

bindings Python das NFS-e de 450 cidades (usando xsdata com os XSD's do UNINFE)
GNU Lesser General Public License v2.1
12 stars 5 forks source link

[TODO SOAP] provedores populares #6

Open rvalyi opened 3 years ago

rvalyi commented 3 years ago

alguns provedores importantes que falta gerir:

Temos um erro com o WSDL do SIMPLISS na geração do xsdata:

rvalyi@rvalyi-laptop:~/DEV/nfselib$ xsdata --package nfselib.simpliss.soap WSDL/Producao/PPresidentePrudenteSP-SIMPLISS.wsdl
Parsing schema nfseservice.svc?wsdl=wsdl0
Traceback (most recent call last):
  File "/usr/local/bin/xsdata", line 11, in <module>
    load_entry_point('xsdata==21.8', 'console_scripts', 'xsdata')()
  File "/usr/local/lib/python3.8/dist-packages/xsdata-21.8-py3.8.egg/xsdata/__main__.py", line 8, in main
    cli()
  File "/usr/local/lib/python3.8/dist-packages/click-7.1.2-py3.8.egg/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/click-7.1.2-py3.8.egg/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.8/dist-packages/click-7.1.2-py3.8.egg/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.8/dist-packages/click-7.1.2-py3.8.egg/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.8/dist-packages/click-7.1.2-py3.8.egg/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/xsdata-21.8-py3.8.egg/xsdata/cli.py", line 102, in generate
    transformer.process(list(resolve_source(source)))
  File "/usr/local/lib/python3.8/dist-packages/xsdata-21.8-py3.8.egg/xsdata/codegen/transformer.py", line 99, in process
    self.process_definitions(sources[TYPE_DEFINITION])
  File "/usr/local/lib/python3.8/dist-packages/xsdata-21.8-py3.8.egg/xsdata/codegen/transformer.py", line 109, in process_definitions
    services = self.parse_definitions(uri, namespace=None)
  File "/usr/local/lib/python3.8/dist-packages/xsdata-21.8-py3.8.egg/xsdata/codegen/transformer.py", line 247, in parse_definitions
    self.process_schema(imp.location)
  File "/usr/local/lib/python3.8/dist-packages/xsdata-21.8-py3.8.egg/xsdata/codegen/transformer.py", line 126, in process_schema
    schema = self.parse_schema(uri, namespace)
  File "/usr/local/lib/python3.8/dist-packages/xsdata-21.8-py3.8.egg/xsdata/codegen/transformer.py", line 222, in parse_schema
    return parser.from_bytes(input_stream, Schema)
  File "/usr/local/lib/python3.8/dist-packages/xsdata-21.8-py3.8.egg/xsdata/formats/bindings.py", line 29, in from_bytes
    return self.parse(io.BytesIO(source), clazz)
  File "/usr/local/lib/python3.8/dist-packages/xsdata-21.8-py3.8.egg/xsdata/formats/dataclass/parsers/bases.py", line 53, in parse
    result = handler.parse(source)
  File "/usr/local/lib/python3.8/dist-packages/xsdata-21.8-py3.8.egg/xsdata/formats/dataclass/parsers/handlers/lxml.py", line 48, in parse
    return self.process_context(ctx)
  File "/usr/local/lib/python3.8/dist-packages/xsdata-21.8-py3.8.egg/xsdata/formats/dataclass/parsers/handlers/lxml.py", line 54, in process_context
    self.parser.start(
  File "/usr/local/lib/python3.8/dist-packages/xsdata-21.8-py3.8.egg/xsdata/codegen/parsers/schema.py", line 62, in start
    super().start(clazz, queue, objects, qname, attrs, ns_map)
  File "/usr/local/lib/python3.8/dist-packages/xsdata-21.8-py3.8.egg/xsdata/formats/dataclass/parsers/xml.py", line 58, in start
    super().start(clazz, queue, objects, qname, attrs, ns_map)
  File "/usr/local/lib/python3.8/dist-packages/xsdata-21.8-py3.8.egg/xsdata/formats/dataclass/parsers/bases.py", line 87, in start
    child = item.child(qname, attrs, ns_map, len(objects))
  File "/usr/local/lib/python3.8/dist-packages/xsdata-21.8-py3.8.egg/xsdata/formats/dataclass/parsers/nodes/element.py", line 339, in child
    raise ParserError(f"Unknown property {self.meta.qname}:{qname}")
xsdata.exceptions.ParserError: Unknown property {http://www.w3.org/2001/XMLSchema}schema:{http://schemas.xmlsoap.org/wsdl/}types