WCF dynamic configuration of security

Hi,

I want to design a wcf service contract that send sometime the messages encrypted and signed (transport security) and sometime send the messages without security.

Solution 1: create 2 services, one with transport security enabled and the other without security.

Solution 2: create 1 service without security and manually encrypte the message (at application level).

Solution 3: a better solution...?

Regards,

Eric

[472 byte] By [allstar1234] at [2008-1-3]
# 1

I think the first one is the best, but you don't need to create different services, just create two endpoints to the same service, with different addresses.

I alread answered the same in another question: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1603895.

- Juan

JuanWajnerman at 2007-9-25 > top of Msdn Tech,Visual Studio Orcas,Windows Communication Foundation (Indigo)...

Visual Studio Orcas

Site Classified