Error 400 PUT method
Serigne Modou gueye (11●3)
| asked Oct 11 '16, 6:40 a.m.
edited Oct 11 '16, 10:47 a.m. by Ralph Schoon (63.4k●3●36●46)
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
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.
Serigne Modou gueye
commented Oct 13 '16, 9:01 a.m.
Thank you for your help, it's very kind of you! Hello,
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
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.