Web service question

Hi, I was playing around with web services and I noticed most tutorials say you should create a proxy class (.dll) out of the service.asmx?wsdl file. My question is what is the point? I'm using Visual Studio 2005, and when I create a new project to utilize that web service, I just add it as a web reference.

The only files that it lets me choose are the .asmx files, the .dll proxy doesn't register as a web service if I go through there. I even delete the proxy .dll and the service still works. Thanks.
[524 byte] By [chobo] at [2007-11-20 11:39:08]
# 1 Re: Web service question
If you use web reference to referencing to a web service it automatically generate a proxy class for you in the file "Reference.cs", so you don`t need to generate it manually using the wsdl.exe.

You can see the file using the Object Browser in VS, or just browse it using Windows Explorer :D
saktya at 2007-11-9 11:36:57 >
# 2 Re: Web service question
Thanks Saktya, is there any benefit of using one method over the other?
chobo at 2007-11-9 11:37:58 >
# 3 Re: Web service question
Actually the both classes is the same, it is generated by the same tool wsdl.exe.

If you simply want to invoke the web service the web reference is enough, but if you want to do some parameter manipulation before invoke the WS you can manually generate it.

For my self I prefer to use the web reference in VS because it is easy to maintenance if some update happen in the WS.
saktya at 2007-11-9 11:38:57 >