Hi,
I've want to add specific custom headers on my wsdl for incoming soap message so i've added the required tags into the header node of the web.config like below:
<headers>
<Tag>Value</Tag>
</headers>
However, this works fine if the 'Value' in the custom tag is set to 'Value' when I change this value the service kicks it out giving the below error;
'DestinationUnreachable - The message with To 'http://localhost:3537/Service1.svc' cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher. Check that the sender and receiver's EndpointAddresses agree.'
So how can I specify variable values for the actual value in between the tags?? like in url templates i.e.
<headers>
<Tag>{variable value here}</Tag>
</headers>
Any ideas, or am I going about custom headers the wrong way? I don't want to use a messageContract as we use RPC style soap over document style.
Also another curious thing is that for the message to be valid the custom defined in the header element must specify a 'IsReferenceParameter="true"' attribute with a ws-addressing namespace otherwise it throws the above error?
<Tag a:IsReferenceParameter="true">Value</Tag>
Can anyone explain this to me?
Thanks in advance
Jon