Create python soap server based on wsdl

后端 未结 2 1322
青春惊慌失措
青春惊慌失措 2020-12-13 07:15

I have an wsdl file describing the communication server-client on a Java product. I\'m implementing a new server based on Python that will implement the same services.

2条回答
  •  无人及你
    2020-12-13 07:16

    This question has not received enough attention.

    The currently accepted answer is good, but its answer is 'no'. Is there really no reasonably maintained and general solution?

    Unfortunately, I don't think the negative answer is due to lack of attention to the question. There really is no support for WSDL in python. If you want to avoid the complexities of building your own soap envelope from scratch the only thing I can recommend you is building a sample envelope using any of the many soap webservices tools (soapui for instance) and then use it as a template string (I know, horrible) in your python code

    UPDATE you could use spyne. It's a python RPC toolkit that among other protocols supports SOAP. It will create the WSDL for you, but if your objective is implementing the service described by the WSDL you already have then you'll have to fine tune your spyne service (written in python) until the generated WSDL matches the original

提交回复
热议问题