on 03-18-2008 5:57 AM
hi to all,
kindly tell me,the difference between http,urn,and uri, while creating namespace,
and which one we have to use.
thanx in advance,
kumar.
Hi
In XML, you can assign element names and attribute names to a namespace in order to differentiate them from other elements and attributes with the same name, which come from other XML documents. Namespaces are identified in XML documents by a URI (Unified Resource Identifier) and are used in the XML document by means of a prefix.
Namespaces in the System Landscape Directory (SLD), which have nothing to do with repository or XML namespaces (see: Namespace [Extern]).
http:// ==== When you specify an HTTP address as a namespace this does not mean that you can access additional information about the namespace from this address (in some cases an XML schema definition is hidden behind the address). The HTTP address used merely ensures that the name of the namespace is unique. SAP namespaces adhere to the standard http://sap.com/xi/<Name>.
urn: === Namespaces with this prefix have no value in the sense that they are not connected with a web page in the Internet.
It is assumed that conventions ensure that namespaces are unique.
regards
Kishore
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hai find the difference between HTTP AND URN
http://When you specify an HTTP address as a namespace this does not mean that you can access additional information about the namespace from this address (in some cases an XML schema definition is hidden behind the address). The HTTP address used merely ensures that the name of the namespace is unique. SAP namespaces adhere to the standard http://sap.com/xi/<Name>.
urn:Namespaces with this prefix have no value in the sense that they are not connected with a Web page in the Internet.
Namespaces are identified in XML documents by a URI (Unified Resource Identifier) and are used in the XML document by means of a prefix.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Difference:
What is the difference between a URL URI and URN why does it matter? This topic is confusing to some (myself included) and I thought Id share my understanding of the two concepts. Im hoping this post will give you a better understanding about how the two differ and why it matters to some.
Note: The goal of this post is to simplify the distinction between URI and URI. If you feel that in the summarization process something was lost, or its simply just correct, please post a comment and the information will be corrected. I only ask for any comments/criticism to be constructive.
Update: Thanks some constructive, and not-so constructive, feedback from some readers I have updated this post to correct many of my own misunderstandings. Of which, there were many.
URI
A URI identifies a resource either by location, or a name, or both. More often than not, most of us use URIs that defines a location to a resource. The fact that a URI can identify a resources by both name and location has lead to a lot of the confusion in my opionion. A URI has two specializations known as URL and URN.
URN
A URI identifies a resource by name in a given namespace but not define how the resource maybe obtained. This type of URI is called a URN. You may see URNs used in XML Schema documents to define a namespace, usually using a syntax such as:
<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:example"Here the targetNamespace use a URN. It defines an identifier to the namespace, but it does not define a location.
check this for more details
http://www.damnhandy.com/2007/11/19/uri-vs-url-whats-the-difference/
When u import RFC in XI and publish as wsdl file then u can find namespace as URN which wont be working when called by remote system.
here RFC namespace is local to XI .
you need to create data types message types of correspoding RFC,n then publish as WSDL.
now namesapce ll start with HTTP:
which is URL ,there by remote system can reach XI box.
This will save your time when you are working on wsdl.
Edited by: Ashok Reddy Thatigutla on Mar 18, 2008 7:06 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Name space is called development class where we willd develope objects under name space.
URN: Uniform Resource Name
URN: <name space name>
URI: Unform Resource Information
URI:<namespace name>
any thing we can use for any scenario
What is the difference between a URL URI and URN why does it matter? This topic is confusing to some (myself included) and I thought Id share my understanding of the two concepts. Im hoping this post will give you a better understanding about how the two differ and why it matters to some.
Note: The goal of this post is to simplify the distinction between URI and URI. If you feel that in the summarization process something was lost, or its simply just correct, please post a comment and the information will be corrected. I only ask for any comments/criticism to be constructive.
Update: Thanks some constructive, and not-so constructive, feedback from some readers I have updated this post to correct many of my own misunderstandings. Of which, there were many.
URI
A URI identifies a resource either by location, or a name, or both. More often than not, most of us use URIs that defines a location to a resource. The fact that a URI can identify a resources by both name and location has lead to a lot of the confusion in my opionion. A URI has two specializations known as URL and URN.
URN
A URI identifies a resource by name in a given namespace but not define how the resource maybe obtained. This type of URI is called a URN. You may see URNs used in XML Schema documents to define a namespace, usually using a syntax such as:
<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:example"Here the targetNamespace use a URN. It defines an identifier to the namespace, but it does not define a location.
check this for more details
http://www.damnhandy.com/2007/11/19/uri-vs-url-whats-the-difference/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.