If your in Visual Studio, then the best thing is to delete the web reference and recreate a brand new one based on your service. Otherwise, if you have the project set up perfectly, and the web reference is still intact (this is normally where I have an issue, when using the setup installer, the TaskVisionWS project won't load so I have to create a new one and copy all of the files in and then recreate the web reference to it) you can simply right-click on web references and the context-menu should give you the ability to update your proxy.
If you are outside of visual studio and you are doing a command line build you'll have to be more proactive and take a look at wsdl.exe and disco.exe. I generally find wsdl.exe to be the tool of choice. Simply:
1. Go to http://website/project/service.asmx?WSDL and save the resulting file out to disk. 2. Use WSDL.exe to create a proxy out of the file you saved out. This is generally quick and painless.
You won't need to rebuild the proxy unless you actually add methods or change the method signatures so they return or take different parameters than what they do now. |