I am using the following code
[ServiceContract(ProtectionLevel=ProtectionLevel.EncryptAndSign)]
public interface IService
{
}
And in the Web.Config
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="netTcpEndpointBinding">
<security mode="Message">
</security>
</binding>
</wsHttpBinding>
</bindings>
<services>
<service name="Service" behaviorConfiguration="ServiceBehavior">
<!-- Service Endpoints -->
<endpoint address="" bindingConfiguration="netTcpEndpointBinding" binding="wsHttpBinding" contract="IService">
Now how can i come to know if my message is sent in encrypted form ??