Rational Quality Manager (4.0.3) API - Bulk Upload not working
Dan Gouveia (13●2●3)
| asked Oct 31 '13, 3:01 p.m.
edited Nov 01 '13, 4:56 p.m. by Lisa Caten (342●9●13)
Hi --
I am attempting to use the bulk update capability of the RQM API. I have used RQM 4.0.3 and RQM 4.0.4. Here is what I am doing: URL https://isg-clm:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/category headers Content-Type: application/atom+xml Referer: https://isg-clm:9443/qm X-Jazz-CSRF-Prevent: 0277FA42EFC08003620AEA067D6F1AE0 payload <?xml version="1.0" encoding="UTF-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> <id>https://isg-clm:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/category</id> <entry xmlns="http://www.w3.org/2005/Atom"> <category xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns1="http://schema.ibm.com/vega/2008/" xmlns:ns3="http://purl.org/dc/elements/1.1/" xmlns:ns4="http://jazz.net/xmlns/prod/jazz/process/0.6/" xmlns:ns5="http://jazz.net/xmlns/alm/v0.1/" xmlns:ns6="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns7="http://purl.org/dc/terms/" xmlns:ns8="http://jazz.net/xmlns/alm/qm/v0.1/tsl/v0.1/" xmlns:ns9="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" xmlns:ns10="http://jazz.net/xmlns/alm/qm/qmadapter/task/v0.1" xmlns:ns11="http://jazz.net/xmlns/alm/qm/qmadapter/v0.1" xmlns:ns12="http://jazz.net/xmlns/alm/qm/v0.1/executionworkitem/v0.1" xmlns:ns13="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1" xmlns:ns14="http://jazz.net/xmlns/alm/qm/v0.1/catalog/v0.1" xmlns:ns16="http://jazz.net/xmlns/alm/qm/styleinfo/v0.1/" xmlns:ns17="http://www.w3.org/1999/XSL/Transform"> <projectArea alias="JKE+Banking+%28Quality+Management%29" href="https://isg-clm:9443/qm/resource/itemOid/com.ibm.team.process.ProjectArea/_4BuVoOqfEeKLT9iFgHGN5g"/> <identifier>https://isg-clm:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/category/mtm.tc.cat.function.MyNewCategory_1</identifier> <title>My New Category #1</title> <categoryType href="https://isg-clm:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/categoryType/mtm.tc.cat.function"/> </category> </entry> </feed> I keep receiving the following error: 400 bad request / No feed entries in the bulk upload request. I have used Poster (Firefox) and Postman (Chrome) and received the same results. Am I doing something wrong? Can someone provide me with a working example of using the bulk update portion of the API? Thanks |
Accepted answer
Dan,
when you fetch the feed for your example, be sure to use "abbreviate=false", e.g.: https://localhost:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/test/category?abbreviate=false Then, you'll see you're missing a tag inside <entry>, namely: <content type="application/xml"> </content> That will do it for you. Dan Gouveia selected this answer as the correct answer
Comments
Dan Gouveia
commented Nov 08 '13, 9:31 a.m.
WINNER!!
|
One other answer
<category <br=""> xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/"
Without looking deeper into the request itself, this is not a valid section of XML. Remove the <br=""> portion. Does that help? Comments
Dan Gouveia
commented Oct 31 '13, 9:27 p.m.
Unfortunately, the paste didn't come across correctly. The <category> tab is correctly formatted.
|
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.