<p>Note: I am just consuming webservice I have no control over webservice code.</p>

<p>So in .net 2.0 I reference the webservice and see a class in the webservice namespace, say foobar. It's defined as:</p>

<pre><code>public class foobar : System.Web.Services.Protocols.SoapHttpClientProtocol
</code></pre>

<p>but in .net 3.5 when i add a reference to the same webservice I no longer have this foobar class available. I do see foobarSoap which is an interface which exposes all of the methods in the foobar class above. It's defined as:</p>

<pre><code>public interface foobarSoap
</code></pre>

<p>However it doesn't expose the properties (for obvious reasons).</p>

<p>I need to access these properties. How do I do it?</p>

You can try using the
Web Service Description Language Tool
(
```
Wsdl.exe
```
) to generate an actual class file:
```
wsdl.exe /language:cs http://www.example.com/FooService.wsdl
```
You can get more information about the
WSDL Tool
on it's
MSDN Page
.