When creating a Web Service with Asp.net C# I get the following
[WebService(Namespace = "http://tempuri.org/")]
Then when I'm using it it shows me the message:
This web service is using http://tempuri.org/ as its default namespace
Recommendation: Change the default namespace before the XML Web service is made public.
What is the function of namespace because I don't see that it varies at all to the web service. Is it necessary to change it, what should I put?
When you create a WS, the default namespace is:
http://tempuri.org/
if you get the message:
It suggests you to change the namespace to differentiate your WebService from the others.
The same page that generates the message should suggest this for C# :
When you implement your Web Service,
Namespace
define your own domain in the property, for example:In this way you will change the default Namespace and when you review the WSDL of your WebService you will be able to see: