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
|
One answer
Ralph Schoon (63.4k●3●36●46)
| answered Mar 15 '19, 7:41 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Mar 15 '19, 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 '19, 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?
No, Namespaces should nit change. |
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.