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

400 server error on PUT of adapters list content

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?

0 votes


Accepted answer

Permanent link

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

1 vote

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
× 10,953

Question asked: Oct 31 '17, 10:28 a.m.

Question was seen: 1,569 times

Last updated: Nov 10 '17, 3:40 a.m.

Confirmation Cancel Confirm