WCFExtras SOAP headers support returns null reference exception
Posted
by
jlp
on Stack Overflow
See other posts from Stack Overflow
or by jlp
Published on 2011-01-10T13:50:38Z
Indexed on
2011/01/10
13:53 UTC
Read the original article
Hit count: 278
I use WCFExtras to add headers to my service. I set up everything according to http://wcfextras.codeplex.com/wikipage?title=HowToUse&referringTitle=Home
My WCF client works but throws NullReferenceException on both:
client.InnerChannel.SetHeader("myHeader", new local.Header());
and
var header = client.InnerChannel.GetHeader<local.Header>("myHeader");
I wonder if web.config element <wsdlExtensions location="noidea" singleFile="True"/>
might cause a problem because I don't know what type in location attribute. I simply tried to type service address but it didn't fix anything.
© Stack Overflow or respective owner