It's all about the answers!

Ask a question

400 server error on PUT of adapters list content


sara chason (27224) | asked Oct 31 '17, 10:28 a.m.
Hi,
I'm interested to change the adapters list in RQM using REST API.
in order to GET the list I use this link:
<server_url>/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project_name>/adapter
as a result, I get a feed of adapters entries.
when I try to PUT back the result, even without changing it, I get a 400 server error saying:"The uploaded content does not consist of well-formed XML or does not match the XML schema for adapter"
can someone please assist?

Accepted answer


permanent link
Vijay Patil (4813) | answered Nov 10 '17, 3:40 a.m.
JAZZ DEVELOPER

Hi Sara,

This is the FEED URL to get the list of resources. PUT/POST of list of resources is not supported using FEED URL.
To change the adapter list, I would suggest to get the resource link of individual adapter using FEED URL, and PUT adapter resource XML on that link.

e.g.
1. Get the adapter list using FEED URL -
<server_url>/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project_name>/adapter
2. Get the resource link of the individual adapter from the response of the FEED URL.
3. Do a GET on the adapter resource link to get the adapter resource XML.
4. Modify the entries in the XML
5. PUT the XML back using the same adapter resource link to update the adapter.

Hope this helps.

Thanks,
Vijay

sara chason selected this answer as the correct answer

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.