title: Magento SOAP API V2 with C#: Issue with Stores that Require HTTP Authentication
body: <p>REVISED QUESTION<br>
  I have revised the original question (as seen below) so that I can mark a part of the problem as answered.  So here goes:<br>I have built a tool to import sales orders from customer stores (magento) for integration into our legacy order processing system.  I have five stores to import from.   One of them has HTTP Authentication set on its store and my API Login fails because of this.  How do I get past this?</p>
  
  <p><br><br>ORIGINAL QUESTION (Title: Importing Sales Orders from Magento Using C#: There is an error in XML document (2, 372)):<br>
  <br>I have built a tool to import sales orders from customer stores (magento) for integration into our legacy order processing system.  I have five stores to import from.   Three work fine.  </p>
  
  <ul>
  <li><p>PROBLEM 1: The fourth store throws up this exception upon executing
  the salesOrderList() call:</p>
  
  <blockquote>
    <p>A first chance exception of type 'System.InvalidOperationException' occurred in System.Xml.dll</p>
    
    <p>There is an error in XML document (2, 372).</p>
  </blockquote>
  
  <p>The login succeeds, I am able to enumerate attribute values, etc. 
  But I am unable to run the <code>salesOrderList()</code> function with any
  filter (and <code>null</code> too).  It would be great if someone has experience
  with this and can point me in the right direction.</p></li>
  <li>PROBLEM 2: The fifth store has <strong>HTTP authorization</strong> to access its
  main magento page. I have only worked with API User Name and API Key.
  But it looks like I have to cross the HTTP Authorization hurdle to
  get to the API login stage. The <code>Login()</code> function of magento web
  service takes only the API User Name and API Key. Not sure how to
  handle the extra layer of HTTP Authentication. Can anyone help?</li>
  </ul>