2
Answers

Consume WCF wsHttpBinding/message/username service from asp.

hj hj

hj hj

11y
1.9k
1
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)