title: LexisNexis SUDS SOAP Request
body: <p>I am also having SOAP problems. I am trying to implement an interface using python with SUDS. </p>
  
  <p>I am trying to create an application that authenticates and searches LexisNexis in python. So if anyone knows if that has been implemented already that would also be great. I have searched around quite a deal, and did find this site: <a href="https://hkn.eecs.berkeley.edu/~dhsu/hacks.shtml" rel="nofollow">https://hkn.eecs.berkeley.edu/~dhsu/hacks.shtml</a>, which is good, but does not have the SOAP code.</p>
  
  <p>What I have done so far: </p>
  
  <p>I know that the envelope should look like: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;soap:Body xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
    &lt;Authenticate xmlns="http://authenticate.authentication.services.v1.wsapi.lexisnexis.com"&gt;
      &lt;authId&gt;id&lt;/authId&gt;
      &lt;password&gt;password&lt;/password&gt;
    &lt;/Authenticate&gt;
  &lt;/soap:Body&gt;
  </code></pre>
  
  <p>And I can build it (I think)</p>
  
  <pre><code>    from suds.sax.element import Element
  
      authentication = Element('Authenticate')
      authentication.set('xmlns','http://authenticate.authentication.services.v1.wsapi.lexisnexis.com')
  
      authId = Element('authId').setText('authId')
  
      password = Element('password').setText('password')
  
      authentication.append(authId)
      authentication.append(password)
  
      print authentication
  </code></pre>
  
  <p>That returns:</p>
  
  <pre><code>&lt;Authenticate xmlns="http://authenticate.authentication.services.v1.wsapi.lexisnexis.com"&gt;
     &lt;authId&gt;authId&lt;/authId&gt;
     &lt;password&gt;password&lt;/password&gt;
  &lt;/Authenticate&gt;
  </code></pre>
  
  <p>However, I am not able to get the client to work. I am given this information: </p>
  
  <p>Schema<br>
   - Authentication.xsd</p>
  
  <p>Target Namespace<br>
   - <a href="http://authenticate.authentication.services.v1.wsapi.lexisnexis.com" rel="nofollow">http://authenticate.authentication.services.v1.wsapi.lexisnexis.com</a></p>
  
  <p>Namespace Table </p>
  
  <ul>
  <li><p><a href="http://authenticate.authentication.services.v1.wsapi.lexisnexis.com" rel="nofollow">http://authenticate.authentication.services.v1.wsapi.lexisnexis.com</a></p></li>
  <li><p><a href="http://security.common.services.v1.wsapi.lexisnexis.com" rel="nofollow">http://security.common.services.v1.wsapi.lexisnexis.com</a></p></li>
  <li><p><a href="http://www.w3.org/2001/XMLSchema" rel="nofollow">http://www.w3.org/2001/XMLSchema</a></p></li>
  </ul>
  
  <p>I am probably doing this wrong but I have tried: </p>
  
  <pre><code>client = Client('http://authenticate.authentication.services.v1.wsapi.lexisnexis.com')
  </code></pre>
  
  <p>and</p>
  
  <pre><code>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))
  </code></pre>
  
  <p>However both resulted in </p>
  
  <pre><code>&lt;urlopen error [Errno 8] nodename nor servname provided, or not known&gt;
  </code></pre>
  
  <p>Sorry for being so newbie with SUDS, this is my first time and the LexisNexis api is pretty rough. </p>
  
  <p>Thanks so much </p>