I am new to both WSE and WCF, and I am trying to use a web service using WCF, but all the documentation examples are for VS2005 + WSE. This web service uses WS-Security 1.0. I added a link to the service through visual studio, but I don’t understand how to make the code equivalent below in WCF:
PartnerAPIWse integrationFramework = new PartnerAPIWse();
UsernameTokenProvider utp = new UsernameTokenProvider("username", "password");
integrationFramework.SetClientCredential<UsernameToken>(utp.GetToken());
Policy policy = new Policy(new UsernameOverTransportAssertion());
integrationFramework.SetPolicy(policy);
source
share