How to make VS.NET 2008 to support WSE 3.0
I found out yesterday that i cant consume a web service with WSE 3.0 capabilities. Well actually it's not that i cant consume, but that when i am adding a Web Reference to the web service i see only the proxy class without the WSE support.
So how do trick my VS.NET 2008 to know my proxy class ( lets say the name of this class is ServiceWse)
Here is how:
- In order to trick VS.NET 2008 I am creating a simple project in VS.2005 , it can a Windows form project or a Console Application project.
- I then right click my project and choosing the WSE 3.0 setting and checking the check box telling my project ( and modifying my app.config) to work with WSE.
- I then add the Web Reference to my WSE enabled web service.
- After doing that i have a Web reference folder under my project folder. Copy it and paste it in your VS.NET 2008 project instead of the one you added before ( The one that did not have any WSE support)
- Modify the proxy cs code to make your namespaces and built your project
That's it, now you have a fully functional WSE enabled proxy class.
By the way , don't forget to tell your project in VS.NET 2008 to support this WSE 3.0 settings ( just open the app.config file using the WSE 3.0 config editor tool, since VS.NET 2008 does not support this tool in it's context menu)
Enjoy, Pini Dayan