I am porting a web service client application that was written with Visual Studio 2008 to Visual Studio 2010. When I add the wsdl URL to VS2008 (using the .NET 2.0 compatibility dialog), a web service stub is generated that does not contain the Begin<MethodName> and End<MethodName> methods that are described in the MSDN Library.
Instead, a <MethodName>Async method and an associated event is generated.
I would prefer if I would not need to change the Begin/End calls in the code to the Async+event coding style.
How do I generate the Begin/End methods that are mentioned in MSDN Library?
I found the solution: obviously the code that I was porting, is from pre-Visual-Studio-2005. Starting from Visual Studio 2005, Begin* and End* no longer are generated. The MSDN document lacks to point that out.