Can phper give me some code snippet to consume the .net wcf service
Posted
by Vincent
on Stack Overflow
See other posts from Stack Overflow
or by Vincent
Published on 2010-05-06T09:14:47Z
Indexed on
2010/05/06
9:18 UTC
Read the original article
Hit count: 230
Hi,
I can successfully make a call to wcf from php without WCF message security enabled. I search the whole forum and cannot find any clue. I'd like to know how can I pass the credential ?
My WCF service use the basichttpbinding on SSL with Message security enabled.
Here is my code snippet to call my wcf from .NET
ServiceReference1.TestClient sc = new TestClient();
sc.ClientCredentials.UserName.UserName = "[email protected]";
sc.ClientCredentials.UserName.Password = "ABC123";
Console.WriteLine(sc.GetProfiledSchemas(412));
© Stack Overflow or respective owner