How to use WSE 3 in Visual Studio 2010

Update for my last post on this topic How to use WSE 3 in Visual Studio 2008 , I have upgraded some projects to Visual Studio 2010, in the project I was using a WSE 3.0 web service. The project compiled fine but I found when I updated the web service I was using the proxy class that was generated did not work. The proxy class inherited from System.Web.Services.Protocols.SoapHttpClientProtocol instead of Microsoft.Web.Services3.WebServicesClientProtocol. This was quite a problem I didn't fancy having to manually recreate it each time  wanted to update the WSE 3.0 web service.

  1. Download and install WSE 3.0 but if you are reading this its probably installed. 
  2. Locate the Visual Studio 2005 add-in at following location C:\ProgramData\Microsoft\MSEnvShared\Addins
  3. At that location you find the file “WSESettingsVS3.Addin”.
  4. Open file in locate the section 8.0  and change it to 10.0 and save
  5. Open the Visual Studio menu and select Tools –> Options –> Environments 
  6. If its not already listed add C:\ProgramData\Microsoft\MSEnvShared\Addins
  7. Restart Visual Studio.

That's it, I restarted Visual Studio and updated the web service and the WSE 3.0 proxy class and methods were generated.
Comments
matt Thursday November 25 2010 09:59 p.m.
I'm not aware of any other way to do it. I believe the entry in devenv.exe.config hooks up the automatic generation of the classes you need to create.
Alberto Saturday July 2 2011 03:29 p.m.
it works, but it doesnt work when i compile it in framework 4.0. any ideas?
Jansey Wednesday July 20 2011 09:01 a.m.
Hi, Yes, when i push F6 and my program would compile, unfortunatelly the system tells me: The Microsoft namespace is not contains the "Web" namespace.:( And really, i did not either find it.
brennan fuchs Friday October 28 2011 04:36 p.m.
No ProgramData folder.. found here: C:Documents and SettingsAll UsersApplication DataMicrosoftMSEnvSharedAddins The setting you specify in 2010 under environments does not exist either..
admin Friday October 28 2011 08:08 p.m.
When I installed WSE 3 I selected the option to install it as an Addin for the earlier version of Visual Studio which I assume creates the folder C:Documents and SettingsAll UsersApplication DataMicrosoftMSEnvSharedAddins check you have the Visual Studio tools installed.
Sam Gentile Saturday June 9 2012 05:58 p.m.
These directories don't exist on Windows7. Its C:UserssgentileAppDataRoamingMicrosoftMSEnvSharedAddIns but the Add In will not load on VS2010. It causes an error and refuses to load. Any ideas?
admin Tuesday June 19 2012 03:01 a.m.
I'm using windows 7 and have the directories and have it working. It doesn't work with ASP.NET 4 though you need to use 3.5 or less.