It's all about the answers!

Ask a question

DOORS sample_get.dxl returns error 406 for RQM resources


Andrew Clement (7272473) | asked Sep 30 '16, 8:13 a.m.
I am testing sample_get.dxl script in my DOORS 9.6.1.3 environment.
sample_get.dxl is at
C:\Program Files\IBM\Rational\DOORS\9.6.1.3\lib\dxl\example\oslc\sample_get.dxl

The sample_get DXL code worked with CCM resources, and the return code was 200.
The sample_get DXL code did not work with QM resources, and the return code was 406.

How can sample_get DXL code work with QM resources?




Accepted answer


permanent link
Howard Hsiao (5.5k17) | answered Sep 30 '16, 8:20 a.m.
JAZZ DEVELOPER
From www.w3.org, HTTP status code 406 means that the resource identified by the request is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the request.

Since this issue happened when accepting header, we can modify line 50 of sample_get.dxl as follows:

change text/xml to application/rdf+xml

and then test again.

Andrew Clement 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.