問題描述
VS 2008 上的 WSE 2.0 SP2 (WSE 2.0 SP2 on VS 2008)
是否可以在 VS 2008 下使用 WSE 2.0 SP2?
我意識到插件(生成代理類/配置)不兼容,但有解決方法(從 VS 2003 解決方案複製文件)。我們的 Web 服務是相對靜態的,因此不會進行太多更改。
我們可能在未來的某個日期遷移到 WCF,但目前正在採取嬰兒步驟,並希望讓我們現有的服務在所有環境下運行.NET 3.5 的優點。
參考解法
方法 1:
You may want to use WSE 2.0 SP3 instead of SP2. Here is why: if you care about (or pay for) Microsoft support services for your application then SP3 is supported under the .NET 2.0 framework. I think there were some incompatibilities between SP2 & SP3 but the big thing is Microsoft specifically states that SP3 is supported on the .NET 2.0 framework. See the WSE 2.0 SP2 documentation and notice that it doesn't say .NET 2.0 is supported.
It looks like you want to convert/rewrite your app in the .NET 3.5 framework. Both .NET 2.0 & .NET 3.5 run under the same CLR 2.0 (yup, it's very confusing: a big thank you goes out to MS marketing!) so you probably are OK running WSE 2.0 SP3 with a.NET 3.5 app. But again, it not a supported configuration.
方法 2:
I have been able to use WSE2 under VS2005/.NET 2.0 with no problems, but I dont know specifically about 2008. I needed Dime attachments (java web service ‑ ugh.. what a headache) which are only in WSE2.
To get the functionality in VS, I actually installed WSE3 and then just changed the dll referenced in the application to the WebServices2 file and all of the Imports (VB ‑ using c#) statements. After that, it worked like a charm.
方法 3:
I have not had any issues running wse2 with visual studio 2008 as long as your just using it like a library even after I switched to the 3.5 framework. But as you state the addin tools don't work.
(by Colin Hardie、Sixto Saez、StingyJack、Aaron Fischer)