cancel
Showing results for 
Search instead for 
Did you mean: 

about namespace

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member238007
Contributor
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

Check this

Regards

Seshagiri

Former Member
0 Kudos

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 I’d share my understanding of the two concepts. I’m 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 it’s 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

Former Member
0 Kudos

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>

HTTP://<namespacename>;

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 I’d share my understanding of the two concepts. I’m 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 it’s 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/