python - 使用python访问内网webservice
问题描述
我需要访问Intranet下的webservice。
我在互联网下尝试了 suds-jurko,效果很好。
但是在内网下不行,因为它总是尝试打开“http://www.w3.org/2001/xml.xsd”和“http://www.w3.org/2001/XMLSchema.xsd”在内网下打不开。
请告诉我如何才能完成这项工作,非常感谢。
解决方案
改用 zeep。
Zeep 3.4 与 Python 2.7、3.3、3.4、3.5、3.6、3.7 和 PyPy 兼容。
Zeep 4 与 Python 3.6、3.7、3.8 和 PyPy 兼容。
推荐阅读
- c# - Dotnet 5 Web Api 的 CORS 问题
- flask - Flask-SqlAlchemy:插入使用序列的模型对象
- vlsi - 设计编译器拓扑中的缩放延迟值
- c++ - 检查一个元组是否在 C++11 中支配另一个元组
- java - 如何将 Java 记录的构造函数设为私有?
- react-redux - react-redux:flat tree 似乎继续强制更新
- javascript - 为什么 jQuery .scroll() 方法不能与 .addClass() 方法一起使用
- ruby-on-rails - 我无法将我的新中间件放置在我想放置在机架堆栈中的位置
- flutter - CustomScrollView 中的 GridView.builder 加载所有项目
- android - 如何将 Retrofit API 调用作为参数传递?