It's all about the answers!

Ask a question

Namespace and element in REST API Response of Artifact


Ajith O M (214) | asked Mar 15, 6:08 a.m.

 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

One answer



permanent link
Ralph Schoon (55.5k23642) | answered Mar 15, 7:41 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Mar 15, 7:45 a.m.

 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. 

 




Comments
Ajith O M commented Mar 16, 1:44 a.m.

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?
 


Ralph Schoon commented Mar 18, 3:18 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

No, Namespaces should nit change. 

Your answer


Register or to post your answer.