It's all about the answers!

Ask a question

Is there a way of getting the information for the "selectedAdapter" of a Task using REST?


Aaron Shepherd (37167) | asked Jan 31 '13, 2:13 p.m.
Looking at the XML schema for the Task artifact, there is an element called "selectedAdapterId" which I thought I could use to retrieve the selected adapter for an executing task.  However, when I try to use the value provided by the "selectedAdapterId" element as <ID> in the following integration service URL, I get a 501 error from the server:

"https://<SERVER>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<PROJECT_AREA>/adapter/<ID>"

After doing some digging I have found that the "selectedAdapterId" specified by the Task XML data is the web ID and not the identifier expected by the above integration service URL. 

Is there a way to either get the to the correct ID using the information provided by a Task, or a different integration service URL I could use which does accept the web ID provided by the Task?

Server is running RQM 4.0.1

Accepted answer


permanent link
Prasun Roy (1674813) | answered Jan 31 '13, 2:39 p.m.
edited Jan 31 '13, 2:48 p.m.
You should use the following URL for accessing the adapter feed if you have the webID
  "https://<server>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project_area>/adapter/urn:com.ibm.rqm:adapter:<webID>"

After you get the Adapter XML feed in case you need the internal Identifier (I can't see a reason why) it should be in the XML.
Aaron Shepherd selected this answer as the correct answer

Comments
Aaron Shepherd commented Jan 31 '13, 5:16 p.m.

Worked like a charm.    Thanks!

Your answer


Register or 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.