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

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

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

0 votes


Accepted answer

Permanent link
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

0 votes

Comments

Worked like a charm.    Thanks!

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
× 480
× 43
× 10

Question asked: Jan 31 '13, 2:13 p.m.

Question was seen: 5,045 times

Last updated: Jan 31 '13, 5:16 p.m.

Related questions
Confirmation Cancel Confirm