title: Passing DataSet to WCF Service
body: <p>I am new to .NET.  I am trying to pass the <code>DataSet</code> following way to WCFService.</p>
  
  <pre><code>public static System.Data.DataSet ds = new System.Data.DataSet();
  wscfservice.wcftestfunction(string1, string2, ref ds);
  </code></pre>
  
  <p>in WSDL file,  the type defined</p>
  
  <pre><code>ActualType xmlns="http://schemas.microsoft.com/2003/10/Serialization/" Name="DataSet" Namespace="http://schemas.datacontract.org/2004/07/System.Data"
  </code></pre>
  
  <p>If I don't use <code>ref</code>, I am getting the compilation error. After running the program, I am getting a null value.</p>
  
  <p>Here are error and <code>ds</code> descriptions</p>
  
  <pre><code>Channel Obtaining the runtime type of a transparent proxy is not supported in this context. 
  </code></pre>
  
  <ul>
  <li>ds  {System.Data.DataSet}   System.Data.DataSet
      CaseSensitive   false   bool
      Container   null    System.ComponentModel.IContainer
      DataSetName "NewDataSet"    string</li>
  <li>DefaultViewManager  {System.Data.DataViewManager}   System.Data.DataViewManager
      DesignMode  false   bool
      EnforceConstraints  true    bool</li>
  <li>Events  {System.ComponentModel.EventHandlerList}    System.ComponentModel.EventHandlerList</li>
  <li>ExtendedProperties  Count = 0   System.Data.PropertyCollection
      HasErrors   false   bool
      IsInitialized   true    bool</li>
  <li>Locale  {en-US} System.Globalization.CultureInfo
      Namespace   ""  string
      Prefix  ""  string</li>
  <li>Relations   {System.Data.DataRelationCollection.DataSetRelationCollection}  System.Data.DataRelationCollection {System.Data.DataRelationCollection.DataSetRelationCollection}
      RemotingFormat  Xml System.Data.SerializationFormat
      SchemaSerializationMode IncludeSchema   System.Data.SchemaSerializationMode
      Site    null    System.ComponentModel.ISite</li>
  <li>Tables  {System.Data.DataTableCollection}   System.Data.DataTableCollection
      Count   0   int
      IsReadOnly  false   bool
      IsSynchronized  false   bool</li>
  <li>List    Count = 0   System.Collections.ArrayList</li>
  <li>SyncRoot    {System.Data.DataTableCollection}   object {System.Data.DataTableCollection}</li>
  <li>Static members      </li>
  <li>Non-Public members      </li>
  <li>Results View    Expanding the Results View will enumerate the IEnumerable   </li>
  </ul>