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

More exloration #1

Open
wants to merge 4 commits into
base: code-lists
Choose a base branch
from

Conversation

blaggacao
Copy link

  • added fully tested genericode importer
  • added wip of an edi workspace
  • make it hidden by default (check it actually works)
  • added wip of edi template
  • dogfood and validate snippets with current (operational) implementation of colombia e-fact
  • try out jpype and use java libraries for validation
  • try to implement a wsdl endpoint per edi_template (hence get_parsed)
Wsdl service skeletton
from spyne import Application, rpc, ServiceBase, Unicode
from spyne.protocol.soap import Soap11
from spyne.server.wsgi import WsgiApplication

class HelloWorldService(ServiceBase):
    @rpc(Unicode, _returns=Unicode)
    def say_hello(ctx, name):
        return f"Hello, {name}!"

application = Application([HelloWorldService],
    tns='http://example.com/hello',
    in_protocol=Soap11(validator='lxml'),
    out_protocol=Soap11())

# Generate WSDL
from spyne.interface.wsdl import Wsdl11
wsdl_content = Wsdl11(application.interface).get_interface_document()

# Save WSDL to file
with open('hello_service.wsdl', 'wb') as f:
    f.write(wsdl_content)

@blaggacao blaggacao force-pushed the exploration/code-lists-and-beyond branch from 3f79fe9 to 51004eb Compare October 2, 2024 14:34
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

Successfully merging this pull request may close these issues.

1 participant