从asp.net/mvc站点获取WCF wsHttpBinding / message / username服务 [英] Consume WCF wsHttpBinding/message/username service from asp.net/mvc site

查看:66
本文介绍了从asp.net/mvc站点获取WCF wsHttpBinding / message / username服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

绑定:wsHttpBinding

安全模式:消息

客户端凭据:用户名

服务器证书:是



我知道如何使用桌面应用程序。喜欢......



ServiceReference1.Service1Client jc = new ServiceReference1.Service1Client();

jc.ClientCredentials.UserName.UserName =a ;

jc.ClientCredentials.UserName.Password =a;

jc.ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode = X509CertificateValidationMode.None;

Console.WriteLine(jc.GetData());





但是想知道如何从asp.net或MVC进行cosume网络应用????



谢谢...

binding : wsHttpBinding
security mode: Message
Client Credentials : Username
Server certificate : yes

I know how to consume from Desktop app. like...

ServiceReference1.Service1Client jc = new ServiceReference1.Service1Client ();
jc.ClientCredentials.UserName.UserName = "a";
jc.ClientCredentials.UserName.Password = "a";
jc.ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode = X509CertificateValidationMode.None;
Console.WriteLine(jc.GetData());


but want to know how to cosume from asp.net or MVC web app????

Thanks...

推荐答案

消费WFC服务没有开发这样的服务;在ASP.NET或其他任何应用程序中使用它并不重要。请从这里开始: http://msdn.microsoft.com/en-us/ library / bb332338.aspx #msdnwcfhc_topic6 [ ^ ]。



-SA
Consuming WFC service is not developing such service; it does not matter in what application do you consume it, in ASP.NET or anything else. Please start, for example, here: http://msdn.microsoft.com/en-us/library/bb332338.aspx#msdnwcfhc_topic6[^].

—SA


这篇关于从asp.net/mvc站点获取WCF wsHttpBinding / message / username服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆