Fog Creek Software
Discussion Board




Welcome! and rules

Joel on Software

WebService Client - Automatic Build

Hi everyone,

I'd like to automatically build a Client/Server application. Calling VS.NET from the command line with the /rebuild [*.sln] parameter perfectly builds the whole solution from scratch.

Well, besides the WebService client application. The WebService proxy class (normally stored in Reference.cs) is not generated automatically from the server's WSDL. You have to start the VS.NET GUI and click on 'Update web reference'. Grrrr....

Any ideas? Thanks a lot!

Alex

Alex
Saturday, September 20, 2003

You could try to use wsdl.exe from the commandline before rebuilding your solution:

wsdl  /n:MyNamespace /out:Reference.cs http://MyServer/MyService.asmx?wsdl

Ryan Duffield
Saturday, September 20, 2003

I agree, running wsdl.exe separately is an option.

The reason I don't like to use this is that we would build the application differently as our (IDE) dev-builds. Could be a maintenance problem (different build scripts/prj files) if WebService things become more complex.

Alex
Monday, September 22, 2003

*  Recent Topics

*  Fog Creek Home