简体   繁体   English

SetClientCredential在vs.net 2005中可见,但在2008中不可见

[英]SetClientCredential visible in vs.net 2005 but not 2008

I add a web reference to my wse 3.0 service in Visual Studio 2005 and my intellisense shows the name of my service like MyServiceWse (it adds the WSE extension to the name). 我在Visual Studio 2005中为我的wse 3.0服务添加了一个Web引用,并且智能感知显示了MyServiceWse服务名称(它在名称中添加了WSE扩展名)。

I also have access to SetClientCredentials() where I pass in my UsernameToken , everything works fine. 我还可以访问SetClientCredentials() ,并在其中传递UsernameToken ,一切正常。

In Visual Studio 2008 I don't have the proxy class with MyServiceWse , I have MyService only, so I don't have access to SetClientCredentials() etc. 在Visual Studio 2008中,我没有与代理类MyServiceWse ,我MyService而已,所以我没有访问SetClientCredentials()等。

What is going on? 到底是怎么回事?

Last I read, WSE support is not directly available in VS 2008. There are some manual techniques in the link below which you can try out. 最后,我读到WSE支持在VS 2008中不直接可用。下面的链接提供了一些手动技术,您可以尝试一下。 I am also waiting for a better solution. 我也在等待更好的解决方案。

WSE 3.0 and Visual Studio 2008? WSE 3.0和Visual Studio 2008?

WCF would be a better solution than WSE. WCF比WSE是更好的解决方案。 WSE is obsolete, and has been replaced by WCF. WSE已过时,已由WCF取代。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM