Per http://msdn.microsoft.com/en-us/library/system.servicemodel.wshttpbinding.security.aspx, .NET Framework 4.5's WSHttpBinding
class has a public Security
attribute of type System.ServiceModel.WSHttpSecurity
.
The problem is WSHttpBinding
is missing this attribute. If I inspect an object of that type with the debugger, it shows no such property:
Also, Intellisense shows no Security
property:
IMPORTANT: Notice that I am setting the Security
attribute using the object initializer! And Visual Stuido is fine with that!?
In Correct way communicate WSSE Usernametoken for SOAP webservice, @Chris Marisic shows where he modifies this object.
This app is being compiled for .NET Framework 4.5.
What gives?