*****
DISCLAIMER - There may be a better way to do this (I hope there is), but I don't know of it. Please share if you know of it.
*****
Today I ran into an interesting issue. We are going to create an API on our end to access the web services of one of our vendors. The problem is we are creating this code in VS 2008 and the vendors web services implement WSE 3.0.
No big deal right, download the WSE 3.0 addin for VS and move on.... NOPE. VS 2008 does not support the addin. And from what I could tell, does not support/implement WSE 3.0 in any way. Now what.....
Turns out there is a 'Great Hack' that will get you around this issue.
- Create a project in VS 2005 (assuming you have that)
- Create you web service reference (in 2005)
- Right click your project and select WSE Settings 3.0
- Click 'Enable this project for Web Services Enhancements'
- Save and close your project.
- Create or Open a project in VS2008
- Create your web service reference, knowing it does not implement WSE
- Copy the contents of Web References folder under your 2005 solution to the Web References folder for your 2008 solution.
- Refresh your 2008 project
You should not have the correct WSE proxy classes.
*****
NOTE: You may need to add a reference to Microsoft.Web.Services3 in your VS 2008 solution.
*****
Yes I know this is weak, but it is the best I got. Please, Please, Please for the love of god tell me there is a better, simpler way.
Till next time,
Posted
04-03-2008 3:05 PM
by
Derik Whittaker