How to call WCF service from .NET 1.1
I have a WCF service which I'm trying to call from a simple .NET 1.1 client. The problem I'm having relates to the sending of "Client Credentials" to the service. In .NET 3.5 I can add the following lines so that the username and password are sent in the message (SOAP) header:
service.ClientCredentials.UserName.UserName = "USERNAME";
service.ClientCredentials.Use开发者_C百科rName.Password = "PASSWORD";
How can I replicate this functionality using .NET 1.1?
Thanks in advance,
Jose
You cannot - WCF is a .NET 3.0 and up technology.
All you can do from .NET 1.1 is to call
- WCF services with
basicHttpBinding
(and basically no security) - WCF REST services (
webHttpBinding
) through the browser/http stack
精彩评论