title: Can you use WCF services with Windows Phone 7?
body: <p>I've only been able to find a couple of people online mentioning this, and it seems to be as simple for them as adding the service reference.</p>
  
  <p>However, when I attempt to add a service reference for my WCF service (which works correctly in a regular console app, so I have ruled the WCF out as the problem) I receive a host of errors.</p>
  
  <ul>
  <li>Warning 5 Custom tool warning: No endpoints compatible with Silverlight 3 were found. The generated client class will not be usable unless endpoint information is provided via the constructor.</li>
  <li>Warning 6 Custom tool warning: Exception has been thrown by the target of an invocation. </li>
  <li>Warning 2 Custom tool warning: Cannot import wsdl:portType
  Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporter</li>
  <li>Error: Could not load type 'System.Runtime.Serialization.DataContractSet' from assembly 'System.Runtime.Serialization, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.</li>
  <li>Warning 4 Custom tool warning: Cannot import wsdl:port
  Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.</li>
  <li>Warning 3 Custom tool warning: Cannot import wsdl:binding
  Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on.</li>
  <li>Error 7 Custom tool error: Failed to generate code for the service reference 'ServiceReference'.  Please check other error and warning messages for details.</li>
  </ul>
  
  <p>I find it strange that the first error mentions Silverlight 3, as I just completely uninstalled and reinstalled all of my development tools to ensure that I was using the latest version of .NET and Silverlight.</p>
  
  <p>These errors look similar to the ones I see if I attempt to create a new Silverlight project and do not check the box "Enable WCF RIA services". I have not been able to find any means to enable that for WP7, if that is indeed the problem.</p>
  
  <p>Any assistance from you scholarly gentlemen (and gentlewomen) would be much appreciated.</p>