I'm trying to expose a service and, particularly, an operation that has an input that has been "tagged" as [MessageHeader]. When I try to run the service, I'm given an InvalidOperationException.
The full message is:
Operation 'X' in contract 'Y' uses a MessageContract that has SOAP headers. SOAP headers are not supported by the None MessageVersion.
Unfortunately that MessageContract has to use headers so I haven't got the possibility to "dispose" the headers altogether. Does anyone know how I can correctly expose my service to both a SOAP and Web client (btw, I've already tried the "How to: Expose
a Contract to SOAP and Web Clients" in the MSDN documentation) under these circumstances?
Thanks in advance!
View Complete Post