I am having a hard time getting a WCF call to include WSSE headers. I need a working example that demonstrates what I am doing wrong. The service I am trying to call has the following characteristics: - It is secured by a certificate - It uses WSSE with a UsernameToken in the header When I sniff the message going to the service ( which I do not have control over ), I do not see the WSSE headers in the message. I also need to be able to turn the MustUnderstand value to false in the MessageHeader. here is my code: WSHttpBinding myBinding = new WSHttpBinding(); [url removed, login to view] = [url removed, login to view]; [url removed, login to view] = [url removed, login to view]; EndpointAddress address = new EndpointAddress("address"); [url removed, login to view] = ValidateServerCertificate; WholeSale_PreOrder_v2r0_PortTypeClient client = new WholeSale_PreOrder_v2r0_PortTypeClient(myBinding, address); [url removed, login to view] = "xxxx"; [url removed, login to view] = "yyy"; [url removed, login to view] = col; What am I doing wrong here?
1) All deliverables will be considered "work made for hire" under U.S. Copyright law. Employer will receive exclusive and complete copyrights to all work purchased. (No 3rd party components unless all copyright ramifications are explained AND AGREED TO by the employer on the site per the worker's Worker Legal Agreement).
.NET 4.0 VS 2010