简体   繁体   English

将SOAP WSDL与python结合使用

[英]Using a SOAP WSDL with python

I have been trying to wrap my head around a few things and I havent found a concrete solution for the same. 我一直在试图绕过一些事情,但我还没有找到一个具体的解决方案。

I want to use a SOAP web service to get an XML data and then parse the received XML data. 我想使用SOAP Web服务获取XML数据,然后解析收到的XML数据。

So far, I have only found libraries compatible with python 2.xx and I want something comaptible with python 3.xx. 到目前为止,我只发现了与python 2.xx兼容的库,我想要与python 3.xx兼容的库。 I have tried Zeep but I wasnt able to configure it as its module was released on May 15th. 我已经尝试过Zeep,但由于其模块于5月15日发布,因此我无法对其进行配置。

Anyway, I would like to be guided towards a library which can help me setup a SOAP client on python 3.6 allowing me to use its methods to send requests and consume the response. 无论如何,我想被引导到一个可以帮助我在python 3.6上设置SOAP客户端的库,该库允许我使用其方法发送请求并使用响应。

My research has shown zeep is really the only currently maintained one. 我的研究表明,zeep实际上是目前唯一维护的一种。 I'm using python 3.6 and using it for SOAP (5/2019). 我正在使用python 3.6并将其用于SOAP(5/2019)。

Quick google search came up with these links which are fresh for 5/2019: What SOAP libraries exist for Python 3.x? 谷歌快速搜索提供了这些链接,这些链接在5/2019才是最新的: Python 3.x存在哪些SOAP库? which I believe is already referenced in the comments (I'm new and can't comment). 我相信评论中已经提到了这些(我是新来的,不能发表评论)。

Another link https://www.slant.co/topics/268/~best-soap-client-libraries-for-python is good, though the "last updated" column is misleading. 另一个链接https://www.slant.co/topics/268/~best-soap-client-libraries-for-python很好,尽管“最新更新”列具有误导性。 Zeep has been updated with in months, but the others have not been updated in years. Zeep已在数月内更新,但其他未在数年内更新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM