Hi,
The default namespace of data/servce contracts in WCF is "http://tempuri.org/"
. By setting the ServiceContract.Namespace
and ServiceBehavior.Namespace
we can get a custom namespace. I do however got some questions on this :
- Do I have to use a
http://
namespace or could I name it to the same CLS namespace? - If I need to set all my datacontracts under MyApp.IO to use the CLS namespace is there a simple way to do this without setting all of them manually?
- Is there a simple way to set the CLS namespace as contract namespace for the entire service and its datacontracts?