title: Getting only Response [200] from posting Trading API call request to Ebay
body: <p>I can post Trading API AddItem call through using Python SDK (using JSON code) or through the API explorer on <a href="https://developer.ebay.com/" rel="nofollow noreferrer">https://developer.ebay.com/</a> (using the same XML codes from the same XML file I used with the Python requests library below) and gets some response as usual.</p>
  <p>However, when I tried to do so by calling through Python requests library with an xml file, I got no response and instead got &lt;Response [200]&gt;. Could someone pls take a look at my code below and see how I can fix it and get the normal response from Ebay?</p>
  <p>Code:</p>
  <pre><code>
  import requests
  
  # Set the name of the XML file.
  xml_file = XML_FILE
  
  headers = {'Content-Type':'text/xml', &quot;X-EBAY-API-SITEID&quot;: &quot;0&quot;,
  &quot;X-EBAY-API-COMPATIBILITY-LEVEL&quot;: &quot;967&quot;,
  &quot;X-EBAY-API-CALL-NAME&quot;:&quot;AddItem&quot;}
  
  # Open the XML file.
  with open(xml_file) as xml:
      r = requests.post('https://api.ebay.com/ws/api.dll', data=xml, headers=headers)
  
  print(r)
  </code></pre>
  <p>My XML file:</p>
  <pre><code>
  &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;AddItemRequest xmlns=&quot;urn:ebay:apis:eBLBaseComponents&quot;&gt;
    &lt;RequesterCredentials&gt;
      &lt;eBayAuthToken&gt;TOKEN&lt;/eBayAuthToken&gt;
    &lt;/RequesterCredentials&gt;
     &lt;ErrorLanguage&gt;en_US&lt;/ErrorLanguage&gt;
     &lt;WarningLevel&gt;High&lt;/WarningLevel&gt;
    &lt;Item&gt;
        &lt;Title&gt;Harry Potter and the Philosopher's Stone&lt;/Title&gt;
        &lt;Description&gt;
          This is the first book in the Harry Potter series. In excellent condition!
        &lt;/Description&gt;
        &lt;PrimaryCategory&gt;
          &lt;CategoryID&gt;29223&lt;/CategoryID&gt;
        &lt;/PrimaryCategory&gt;
        &lt;StartPrice&gt;1.0&lt;/StartPrice&gt;
        &lt;CategoryMappingAllowed&gt;true&lt;/CategoryMappingAllowed&gt;
        &lt;Country&gt;US&lt;/Country&gt;
        &lt;Currency&gt;USD&lt;/Currency&gt;
        &lt;PaymentMethods&gt;CreditCard&lt;/PaymentMethods&gt;
        &lt;DispatchTimeMax&gt;3&lt;/DispatchTimeMax&gt;
        &lt;ListingDuration&gt;Days_7&lt;/ListingDuration&gt;
        &lt;ListingType&gt;Chinese&lt;/ListingType&gt;
        &lt;PictureDetails&gt;
          &lt;PictureURL&gt;https://mysamplepicture.com/14.jpg&lt;/PictureURL&gt;
        &lt;/PictureDetails&gt;
        &lt;PostalCode&gt;95125&lt;/PostalCode&gt;
        &lt;Quantity&gt;1&lt;/Quantity&gt;
        &lt;ItemSpecifics&gt;
           &lt;NameValueList&gt;
              &lt;Name&gt;Title&lt;/Name&gt;
              &lt;Value&gt;Harry Potter and the Philosophers Stone&lt;/Value&gt;
           &lt;/NameValueList&gt;
           &lt;NameValueList&gt;
              &lt;Name&gt;Publisher&lt;/Name&gt;
              &lt;Value&gt;Smashwords&lt;/Value&gt;
           &lt;/NameValueList&gt;
           &lt;NameValueList&gt;
              &lt;Name&gt;Author&lt;/Name&gt;
              &lt;Value&gt;JK Rowling&lt;/Value&gt;
           &lt;/NameValueList&gt;
           &lt;NameValueList&gt;
              &lt;Name&gt;Language&lt;/Name&gt;
              &lt;Value&gt;English&lt;/Value&gt;
           &lt;/NameValueList&gt;
        &lt;/ItemSpecifics&gt;
        &lt;ReturnPolicy&gt;
          &lt;ReturnsAcceptedOption&gt;ReturnsAccepted&lt;/ReturnsAcceptedOption&gt;
          &lt;RefundOption&gt;MoneyBack&lt;/RefundOption&gt;
          &lt;ReturnsWithinOption&gt;Days_30&lt;/ReturnsWithinOption&gt;
          &lt;ShippingCostPaidByOption&gt;Buyer&lt;/ShippingCostPaidByOption&gt;
        &lt;/ReturnPolicy&gt;
        &lt;ShippingDetails&gt;
          &lt;ShippingType&gt;Flat&lt;/ShippingType&gt;
          &lt;ShippingServiceOptions&gt;
            &lt;ShippingServicePriority&gt;1&lt;/ShippingServicePriority&gt;
            &lt;ShippingService&gt;USPSMedia&lt;/ShippingService&gt;
            &lt;ShippingServiceCost&gt;2.50&lt;/ShippingServiceCost&gt;
          &lt;/ShippingServiceOptions&gt;
        &lt;/ShippingDetails&gt;
        &lt;Site&gt;US&lt;/Site&gt;
    &lt;/Item&gt;
  &lt;/AddItemRequest&gt;
  </code></pre>