Python LexisNexis SUDS SOAP请求

Python LexisNexis SUDS SOAP请求,python,xml,authentication,soap,suds,Python,Xml,Authentication,Soap,Suds,我也有肥皂问题。我正在尝试使用python和SUD实现一个接口 我正在尝试创建一个应用程序,用python验证和搜索LexisNexis。因此,如果有人知道这项计划是否已经实施,那也太好了。我搜索了很多地方,确实找到了这个网站:,这很好,但没有SOAP代码 到目前为止我所做的: 我知道信封应该是这样的: <?xml version="1.0" encoding="utf-8"?> <soap:Body xmlns:soap="http://schemas.xmlsoap.org

我也有肥皂问题。我正在尝试使用python和SUD实现一个接口

我正在尝试创建一个应用程序,用python验证和搜索LexisNexis。因此,如果有人知道这项计划是否已经实施,那也太好了。我搜索了很多地方,确实找到了这个网站:,这很好,但没有SOAP代码

到目前为止我所做的:

我知道信封应该是这样的:

<?xml version="1.0" encoding="utf-8"?>
<soap:Body xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <Authenticate xmlns="http://authenticate.authentication.services.v1.wsapi.lexisnexis.com">
    <authId>id</authId>
    <password>password</password>
  </Authenticate>
</soap:Body>
这将返回:

<Authenticate xmlns="http://authenticate.authentication.services.v1.wsapi.lexisnexis.com">
   <authId>authId</authId>
   <password>password</password>
</Authenticate>

然而,两者都导致了

<urlopen error [Errno 8] nodename nor servname provided, or not known>
很抱歉,我对肥皂水如此生疏,这是我第一次,LexisNexisAPI非常粗糙


非常感谢

您的错误与SUD无关,与底层urllib连接请求有关:

<urlopen error [Errno 8] nodename nor servname provided, or not known>

这也失败了!请检查您的URL,然后重试。

LexisNexis为API开发人员提供了一个WSDL文件,可与他们的用户名和密码一起使用。您必须确保您正在使用此WSDL。要使用sud在本地访问WSDL文件,请输入url作为file://path/to/file.wsdl

imp = Import('http://www.w3.org/2001/XMLSchema',
                 location='http://www.w3.org/2001/XMLSchema.xsd')
imp.filter.add('http://security.common.services.v1.wsapi.lexisnexis.com')
wsdl_url = 'http://authenticate.authentication.services.v1.wsapi.lexisnexis.com'
client = Client(wsdl_url, doctor=ImportDoctor(imp))
<urlopen error [Errno 8] nodename nor servname provided, or not known>
<urlopen error [Errno 8] nodename nor servname provided, or not known>
import urllib
urllib.urlopen(u'http://authenticate.authentication.services.v1.wsapi.lexisnexis.com')