开发者

SOAP Client for Python 3 [closed]

开发者 https://www.devze.com 2023-01-06 18:21 出处:网络
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

Although this question is very popular here in StackOverflow, after spending some time here and in the Google, I still haven't find a concrete answer on what is the most appropriate way to do SOAP consuming in Python 3.

I took a look at Does a Python 3 SOAP client module exist?, and I hope it is outdated and开发者_Python百科 today some solution to this may have appeared.

I was thinking about some ideas:

  1. Use 2to3 script to port some existing libraries to Python 3 (SOAPy, suds, etc).
  2. Load an external module, by mixing technologies (Py3k + Jython, Py3k + Python 2.6, etc.)
  3. Write in hardcode Python classes that corresponds to definitions of WSDL files (which implies in tight-coupling/high maintenance).
  4. Write the software in Python 3.0, call the "python2.6-only" module functions through the execnet package. Which requires the Python 2.6 to be installed on the machine and the software written in Python3.0 to be a frozen binary.

Any ideas?

Thanks in advance


I would probably start by trying your suggested 2to3 port. For many things, it works pretty well. It would still be a day or two worth of work to convert something like suds, I imagine.

0

精彩评论

暂无评论...
验证码 换一张
取 消