title: Ebay SOAP error returning "Missing SOA operation name header"
body: <p>I'm trying to make some requests on the eBay's webservice using python's <a href="https://fedorahosted.org/suds/" rel="nofollow noreferrer">suds</a>, but I always get this error:</p>
  
  <blockquote>
    <p>"Missing SOA operation name header"</p>
  </blockquote>
  
  <p>The code I use is as follows:</p>
  
  <pre><code>client = Client(EBAY_WSDL)
  ns1 = ('ns1', 'http://www.ebay.com/marketplace/search/v1/services')
  operation_name = Element('X-EBAY-SOA-OPERATION-NAME',ns=ns1).setText('findItemsByKeywords')
  appid = Element('X-EBAY-SOA-SECURITY-APPNAME',ns=ns1).setText('MY APP ID')
  headers = [appid,operation_name]
  client.set_options(soapheaders=headers)
  </code></pre>
  
  <p>I can't see what I'm doing wrong with the headers... can someone point it out for me?</p>
  
  <p>Thanks!</p>
  
  <p>--EDIT--</p>
  
  <p>Well, for anyone with the same problem.
  I've solved this issue.</p>
  
  <p>The problem is that I'm setting soap header when it should be the http header.
  So, the answer is put the headers in the Client constructor, like this:</p>
  
  <pre><code>operation_name = {'X-EBAY-SOA-OPERATION-NAME':'findItemsByKeywords', 'SomeOther':'blabla'}
  client = Client(EBAY_WSDL,headers=operation_name)
  </code></pre>
  
  <p>That's it!</p>