- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
尝试使用 echosign SOAP API。
wsdl 在这里:https://secure.echosign.com/services/EchoSignDocumentService14?wsdl
当我尝试创建某些对象时,它似乎无法找到类型,即使在 print client
中列出它也是如此
import suds
url = "https://secure.echosign.com/services/EchoSignDocumentService14?wsdl"
client = suds.client.Client(url)
print client
Service ( EchoSignDocumentService14 ) tns="http://api.echosign"
Prefixes (10)
ns0 = "http://api.echosign"
ns1 = "http://dto.api.echosign"
ns2 = "http://dto10.api.echosign"
ns3 = "http://dto11.api.echosign"
ns4 = "http://dto12.api.echosign"
ns5 = "http://dto13.api.echosign"
ns15 = "http://dto14.api.echosign"
ns16 = "http://dto7.api.echosign"
ns17 = "http://dto8.api.echosign"
ns18 = "http://dto9.api.echosign"
Ports (1):
(EchoSignDocumentService14HttpPort)
Methods (45):
...
Types (146):
ns1:CallbackInfo
ns17:WidgetCreationInfo
为简洁起见进行了删减,但显示了命名空间和我现在关心的 2 种类型。
尝试运行 WCI = client.factory.create("ns17:WidgetCreationInfo")
生成此错误:
client.factory.create("ns17:WidgetCreationInfo") Traceback (most recent call last): File "", line 1, in File "build/bdist.macosx-10.7-intel/egg/suds/client.py", line 244, in create suds.BuildError: An error occured while building a instance of (ns17:WidgetCreationInfo). As a result the object you requested could not be constructed. It is recommended that you construct the type manually using a Suds object. Please open a ticket with a description of this error. Reason: Type not found: '(CallbackInfo, http://dto.api.echosign, )'
因此它似乎无法找到 CallbackInfo 类型。也许是因为那里缺少 ns?
最佳答案
同样,在此处发帖 15 分钟后想通了。
suds 有一个选项可以交叉授粉所有命名空间,因此它们都可以导入彼此的模式。 autoblend
可以在构造函数中设置,也可以使用 set_options
方法设置。
suds.client.Client(url, autoblend=True)
关于Python suds 错误创建对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11532756/
我正在使用 python suds基于本地 wsdl 文件制作 SOAP 客户端的库。我的目标是使用 Twisted 作为后端,因此我以异步方式查询 SOAP 服务器。 我知道这个话题已经被讨论过不同
我正在使用 Suds 从 Python 访问 SOAP Web 服务。如果我有多个 threading.Thread 执行线程,它们中的每一个都可以安全地同时访问同一个 suds.client.Cli
我有一个 django 应用程序...我正在使用 SOAP suds 客户端访问 Web 服务...我需要从在 GUI 中输入的条目创建一个用户对象...这个用户对象将被传递给一个方法。 ..但我收到
Python 新手。尝试使用 Python 构建一个简单的 soap 客户端。相同的程序在不涉及代理的环境中工作。 ***********Version 1 import suds import ur
我很确定suds不会缓存我的WSDL和XSD的like I expect it to。这是我知道不使用缓存对象的方式: 创建客户端大约需要30秒:client = Client(url) 记录器条目显
我在 wsdl 中的复杂类型方面遇到了一些麻烦。这是 wsdl 的一部分:
我正在尝试使用 suds 连接到本地网络上的 KnowledgeTree 网络服务。我可以创建客户端并检索服务信息,但是调用那里列出的 login 方法会产生 suds.WebFault: Serve
尝试使用 echosign SOAP API。 wsdl 在这里:https://secure.echosign.com/services/EchoSignDocumentService14?wsdl
我正在尝试让泡沫连接到任何东西。这是我第一次使用它。我输入的每个网址都会返回一个错误。这是我的代码;几乎完全从不同的线程复制。 from suds.client import Client url =
Trying below code to check suds working Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.
首先我要说的是,我对 SOAP 以及事情应该如何工作还很陌生。我正在使用 Vertical Response API。 我无法让 suds 为请求正确构建 xml。这是一些代码: from suds.
环境:Python 2.7.4(部分在 Windows 上,部分在 Linux 上,见下文),suds(SVN HEAD 稍作修改) 我需要调用一个采用单个参数的 Web 服务,该参数是一个 XML
我是 Python 和 suds 新手。使用 SOAP UI,对我的服务的调用如下所示: " xmlns:ns1="">
代码: security = Security() token = UsernameToken('b77a5c561934e089', 'kmfHkNZyn1U/pGAiY3+h0BoHdKI=')
我正在尝试将 PHP 脚本转换为 python,但终究无法弄清楚为什么以下代码不起作用。 从 SOAP 服务查询返回的结果: Suds ( https://fedorahosted.org/suds/
我很难让基于 suds 的 python SOAP 客户端来解析响应:客户端构造正确并且可以很好地解析 WSDL。据我所知,WSDL 中没有任何导入,因此这看起来不像是典型的 ImportDoctor
我正在尝试使用 salesforce-python-toolkit 对 Salesforce API 进行 Web 服务调用,但是我无法让客户端通过代理。由于该工具包基于 suds,我尝试继续使用 s
我正在研究 SUDS 作为 python 的 SOAP 客户端。我想检查指定服务中可用的方法,以及指定方法所需的类型。 目的是生成用户界面,允许用户选择方法,然后在动态生成的表单中填写值。 我可以获得
我正在努力解决一个非常简单的问题。我无法在 SUDS jurko 连接上设置 session 超时。我的 WSDL 很好。提取较小的数据集时一切正常。我尝试了几种设置超时的方法。虽然以下内容没有提示/
几年前,我使用 Python SUDS 连接到 Web 服务以进行冒烟测试。 Python 脚本将使用 SUDS 连接到 WSDL 文件并将 SOAP 消息发送到 Web 服务。然后 SUDS 将解析
我是一名优秀的程序员,十分优秀!