Last post Dec 19, 2012 12:31 AM by Haixia Xie - MSFT
Dec 17, 2012 01:14 AM|WenHao.Mui|LINK
I wonder what is the purpose of using namespace. I have google alot, but i can't see why i need to use it?
During the search, most of them stated that, namespace can be used for versioning. How so?
I would appreciate for a concrete implementation. For example, after I have specify the namespace, I can call the service using the namespace.
Dec 19, 2012 12:31 AM|Haixia Xie - MSFT|LINK
If you mean the Namespace property of ServiceContractAttribute, it sets the namespace of the
<portType> element in WSDL. The default value is
http://tempuri.org. It aims at resolving
naming conflicts, just like the namespace of our
managed languages (such as
C #, VB.NET). It is encouraged set a namespace that contains
your company name or
If you mean ServiceBehaviorAttribute.Namespace property, it sets the value of the target namespace for the service in WSDL. It is the
value of the targetNamespace attribute for the
<wsdl:definitions> element that contains the
<wsdl:service> element. It is the namespace of the service itself. The default value is