Topics: Service Factory Modeling Edition Forum
Nov 27, 2007 at 4:25 PM
hello again,
i'm guessing there is not a way to specify a message header on an operation using the model. maybe i am not looking in the right place to put a custom header on an operation? in a classic web service we would declare a custom header using an attribute on the web method.

Nov 27, 2007 at 5:23 PM
The model does not support headers but you still can do it in a pretty easy way.
Perhaps the best place to put a custom header may be in a property of a MessageContract and add the appropiate attribute "MessageHeader".
So you may extend the generated partial class for your mesage contract and add a property decorated with the MessageHeader attribute.