Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TODO SOAP] provedores populares #6

Open
rvalyi opened this issue Oct 11, 2021 · 0 comments
Open

[TODO SOAP] provedores populares #6

rvalyi opened this issue Oct 11, 2021 · 0 comments

Comments

@rvalyi
Copy link
Member

rvalyi commented Oct 11, 2021

alguns provedores importantes que falta gerir:

  • SAATRI (parece que não tem nos WSDLs da UNINFE, usado principalmente na Bahia)
  • SIMPLISS (ver abaixo)
  • ISSINTEL (parece que não tem nos WSDLs da UNINFE)
  • COPLAN (TODO)

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant