title: Using Webservice classes in Silverlight when adding service reference instead of web reference
body: <p><strong>Scenario:</strong></p>
  <p>I am using Silverlight 3.0 as client for a web service.</p>
  <p><strong>Design:</strong></p>
  <p>The server has a class named <strong>DeviceInfoService</strong> which has the basic functionality of getting the list of devices, getting the properties of devices etc.</p>
  <p>When I open an ASP.NET project and try to add a web reference, I can find an option to add a &quot;Web Reference&quot;. After I add the web reference this way, I am able to access the DeviceInfoService class by creating it's object and then accessing it's methods.</p>
  <p><strong>Web Reference v/s Service Reference:</strong></p>
  <p>Coming to Silverlight: when I try to add a service reference, there is no option to add a web reference. Going with Service Reference, everything works fine till WSDL file is downloaded. People say that I can get this option by going back to .NET 2.0, but probably Silverlight won't work in .NET 2.0</p>
  <p><strong>The Problem</strong></p>
  <p>Now when I try to access the class DeviceInfoService , I am not able to find it. All I get is Interfaces -- DeviceInfoServiceSoap and DeviceInfoServiceSoapChannel. Classes named DeviceInfoServiceSoapClient.</p>
  <p>The methods GetHostedDevices and GetDeviceInfo are no longer available. All I get is GetDeviceInfoRequest, GetDeviceInfoRequestBody, GetDeviceInfoResponse and GetDeviceInfoResponseBody.</p>
  <p>I googled a lot how to use these four classes, only to find nothing. I want to get those 2 classes directly like in ASP.NET and not using those Request Response type.</p>