It's all about the answers!

Ask a question

Error 400 PUT method


Serigne Modou gueye (113) | asked Oct 11 '16, 6:40 a.m.
edited Oct 11 '16, 10:47 a.m. by Ralph Schoon (63.3k33646)
 Hi All, i'm trying to update a record CQ with api rest in java and i got the following error:
<message>Le préfixe "rdf" de l'attribut "rdf:resource" associé à un type d'élément "dc:type" n'est pas lié.</message>
<statusCode>400</statusCode>
and here is the xml file using to send the request:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Ticket xmlns="http://www.ibm.com/xmlns/prod/rational/clearquest/1.0/" xmlns:dc="http://purl.org/dc/terms/" xmlns:oslc_cm="http://open-services.net/xmlns/cm/1.0/">
<dc:type rdf:resource="http://cq8.gsissc.myatos.net/cqweb/oslc/repo/SSC_SANDBOX/db/SSCSB/record-type/16777237">Ticket</dc:type>
<Description>Where do I find the login URL?</Description><HeadLine>Login URL_2_4</HeadLine>
</Ticket>

thank you for your help

One answer



permanent link
Donald Nong (14.5k614) | answered Oct 11 '16, 8:15 p.m.
The error message basically says that the namespace "rdf" is missing from the specification, and you will need to add it into the first line of the XML payload.

If you have any further questions about ClearQuest, the dW Answers forum is the right place to go.
https://developer.ibm.com/answers/index.html

Or you can contact Support.

Comments
Serigne Modou gueye commented Oct 12 '16, 7:09 a.m.

 Thank you for your help, i have any more this error. but i got this:

<?xml version="1.0" encoding="UTF-8"?><Error xmlns="http://open-services.net/xmlns/cm/1.0/" xmlns:cq="http://www.ibm.com/xmlns/prod/rational/clearquest/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">;
<message>CRRCM9983E: Le paramètre action-name n'a pas été spécifié. Il a été défini par défaut pour utiliser l'action de type MODIFY. Cependant, plusieurs actions de ce type ont été trouvées.</message>
<statusCode>409</statusCode>
</Error>
i use HttpPut in java


Donald Nong commented Oct 12 '16, 8:16 p.m.

ClearQuest by default uses the "Modify" action when you try to do an update, but the error message suggests that there are more than one actions of the type MODIFY and ClearQuest gets confused. You will need to use the parameter "rcm.action" to specify which action you are going to use. Check the document for details.
https://jazz.net/wiki/bin/view/Main/CqOslcV2#PUT

Also, since you're trying to do a partial update, you may encounter the same issue as in this post.
https://www.ibm.com/developerworks/community/forums/html/topic?id=aac93585-e231-4580-81e5-aa72034dd9a0

If you're struggling, I suggest you contact Support.


Serigne Modou gueye commented Oct 13 '16, 9:01 a.m.

Thank you for your help, it's very kind of you!


Serigne Modou gueye commented Oct 17 '16, 6:50 a.m. | edited Dec 27 '16, 3:02 p.m.

 Hello, 
i need to get the WADL file of oslc rest api. can you tell me what can i do it please?


Donald Nong commented Oct 17 '16, 8:24 p.m.

As far as I know, there is no WADL for the ClearQuest OSLC API.

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.