Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Namespace and element in REST API Response of Artifact

 Dear Team,

I would like to know whether the response of any artifact like test plan:
url : https://server name/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/TestProject/testplan/urn:com.ibm.rqm:testplan:67

This REST API will give a xml response and this response has namespaces.like ns2, ns3. We are extending these API responses for our tool. So Is there any chance this ns2 and ns3 or any other namespaces will change in future?
Please help me at the earliest.

Thanks and Regards
Ajith

1

1 vote



One answer

Permanent link

 If I am not totally mistaken, ns2, ns3 are prefixes that refer to the real namespace definition in the first seqment of the RDF XML document. The prefixes do not define the namespace, they are a short representation. The namespace defined at the beginning of the message. As an example from https://jazz.net/library/article/92596


xmlns:j.0="http://jazz.net/ns/rm/dng/config#"

The namespace that does not change is "http://jazz.net/ns/rm/dng/config#".

The prefix j.0 is just an alias that is used in the elements to improve readability. 

 



0 votes

Comments

Yeah thanks for the response. 

I get ns2 and ns3 are prefixes and the namespace definitions are different. I would like to know if the namespace changes or not ? Whether namespace definition links changes or not ?

In our application,we would be parsing the xml response and namespaces accordingly. So Is there any chance this ns2 and ns3 or any other namespaces definitions link will change in future?
 

No, Namespaces should nit change. 

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,926
× 478
× 218
× 31

Question asked: Mar 15 '19, 6:08 a.m.

Question was seen: 3,420 times

Last updated: Mar 18 '19, 3:18 a.m.

Confirmation Cancel Confirm