DCSIMG
How to make VS.NET 2008 to support WSE 3.0 - Pini Dayan

Pini Dayan

The best thing about a boolean is even if you are wrong, you are only off by a bit.

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

Comments

Yaron Naveh said:

I think you meant the dummy project to be in 2005 and not 2008. Also (most) WSE 3 projects can be consumed by WCF clients so you can also use them and have UI.

# December 25, 2008 3:00 PM

Pini Dayan said:

True, I types it wrong. It should be 2005. I fixed it.

Thnaks.

# December 26, 2008 6:16 PM

Brianna said:

Wow! I could not even guess about it)) Not bad.

# March 27, 2012 8:42 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: