开发者

Can .net 4.0 developed web reference be added to a .net 2.0 web service

I'm developing this web service which is developed in VS 2005, with .net 2.0. I need to add a web refernce to an external web service which is developed in .net 4.0. I was able to do that. But when I try to access the newly added web refernece through my code, i get a build error - new added service is undefined. Why does my application does not recognis开发者_Go百科e the newly added web reference. Is it something to do with .net version? Any help in this matter would be greatly appreciated. Thank you


If you set the WCF service to have basicHttpBinding, yes.

Here's what MSDN has to say


Although I never tried something like that, I think you can't reference a service made in a higher version as WCF (native code). You can still add it as a standard webservice reference (SOAP protocol) so it gets leveraged to w3c standards. You will lose some integration but you will be able to use it properly.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜