What is the NameSpace attribute in a WCF DataContract and why should I use it?
Posted on 2012-09-02
I'm a Newbie to the world of WCF.
I've got some very basic questions regarding namespaces.
When you specifiy a DataContract on a class, you have the ability to specify the NameSpace attribute.
I've got some basic WCF services defined within VS2010 and am successfully calling the services within a client in the same solution. I'm not explicitly defining the NameSpace attribute.
In straightforward terms, what is the NameSpace attribute?
Why do I need to use it?
I'm fiddling around with trying to implement some generic ErrorHandling using the IErrorHandler interface. One of the parameters for creating a new SenderFaultCode is to provide a namespace. I'm not clear on what I should be using here.