Re: Proxy creation - why is there more than 1 way?

Tech-Archive recommends: Fix windows errors by optimizing your registry



Two reasons that I can think of:

One reason is that Visual Studio is just a tool for creating .NET apps.
..NET apps can be developed with software other than Visual Studio (see:
Notepad, etc...). The .NET Framework SDK provides the tools needed to build
..NET apps to those that do not have/can't afford Visual Studio.

The other reason really boils down to how you want to use the web service.
If you are only going to use the service in one application, adding a Web
Reference through Visual Studio will create the proxy class and, when the
project is compiled, the proxy class will be compiled into the project's
assembly rather than to its own. However, if you need to use the web
service from multiple applications, it would probably make more sense to
generate the proxy class manually with WSDL.exe and compile it to its own
assembly that can be referenced where it's needed.

HTH
----------------
Dave Fancher
http://www.davefancher.com

"Tim Zych" <nosapsmafasdfasdf@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:urBHqc%23qFHA.2596@xxxxxxxxxxxxxxxxxxxxxxx
> To create a web service proxy you can use wsdl.exe and vbc.exe using
> command
> line, then set a reference to the resulting dll, or alternatively add a
> web
> reference and let vs.net do it all for us.
>
> Does the manual command line way offer any advantages over the other? Why
> would a developer want to use command line to do that instead of the
> automatic way?
>
>
>


.



Relevant Pages

  • Re: Proxy creation - why is there more than 1 way?
    ... > One reason is that Visual Studio is just a tool for creating .NET apps. ... > The other reason really boils down to how you want to use the web service. ... > Reference through Visual Studio will create the proxy class and, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Borland Delays Quarterly Results
    ... but Visual Basic was the only real native development ... development tools in earlier versions of Visual Studio .NET, ... The only reason you an do native ... Life is complex. ...
    (borland.public.delphi.non-technical)
  • .NET stops working after installing cyncware products
    ... I recently downloaded software from a company called cyncware (I ... The only way to get .NET apps working again is to do a hard reset. ... What files do Visual Studio need on the device to run in debug mode? ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Usenet employs and entirely different currency.
    ... He was quite a "regular" on COLA (and he is a devout Windows / Visual Studio ... Jeff revolutionises physics in sci.physics. ... Brad tries to reason with the voices in his head... ... "General Relativity is a Tower of Babel that wastes time, ...
    (sci.geo.geology)
  • Re: Communicating Between Web Applications
    ... > I don't have a reason to feel that it was the right way to go. ... > I hope this clarifies things a little. ... Team Development with Visual Studio .NET and Visual SourceSafe ... you'll see that it talks about several ways to partition solutions to ...
    (microsoft.public.dotnet.framework.aspnet)