hj hj

hj hj

  • NA
  • 5
  • 2.2k

Consume WCF wsHttpBinding/message/username service from asp.

May 16 2013 12:57 AM
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...

Answers (2)