title: How can I create and return CSV, not XML, in an ASMX Web Service, using SOAP with Attachments?
body: <p>Let's say I have a class like this:</p>
  
  <pre><code>class Person
  {
      public string name;
      public string address;
      public string city;
      public string state;
      public string zip;
  }
  </code></pre>
  
  <p>And I'm performing a data dip on a database:</p>
  
  <pre><code>Select Name, Address, City, State, Zip
  FROM Persons_Tbl
  </code></pre>
  
  <p>I am storing the data in in the Person class, via SqlDataReader.</p>
  
  <p>Normally, the Web Service will return the data and it'll be XML formatted.  However, I want to return it as CSV, not XML.  I realize that web services return either XML or JSON.  But there is something called SOAP with Attachments.  Can the attachment be CSV and, if so, how could I do this?</p>