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

Error 400 PUT method

 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

0 votes



One answer

Permanent link
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.

0 votes

Comments

 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

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.

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

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

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

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
× 478

Question asked: Oct 11 '16, 6:40 a.m.

Question was seen: 2,203 times

Last updated: Dec 27 '16, 3:02 p.m.

Confirmation Cancel Confirm