Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello
i see a c# code sample that contains following line:
public const string SchemaNamespace = "http://tempuri.org/UserPreference.xsd";

what is general purpose of this line code?
thanks
Posted

1 solution

Refer - Tempuri[^].
Quote:
Each XML Web service needs a unique namespace in order for client applications to distinguish it from other services on the Web.

tempuri.org is the test default namespace URI used by Microsoft development products, like Visual Studio. It is available for XML Web services that are under development, but published XML Web services should use a more permanent namespace. The term is strictly a placeholder and all instances of it should be replaced with a more meaningful URI in production systems.

The World Wide Web Consortium recommends that XML namespaces be a Uniform Resource Identifier. "tempuri" is short for Temporary Uniform Resource Identifier.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900