It's all about the answers!

Ask a question

How change RTC work item state in OSLC

Dmitry A. Lesin (23823587) | asked May 27 '14, 5:07 a.m.
I'm trying to change a work item state with a simple HTTP PUT request. I do a request:

Content-Type - application/x-oslc-cm-change-request+xml
Accept - application/x-oslc-cm-change-request+xml

I tried several URLs, for example such ones:
  • https://localhost:9443/ccm/oslc/workitems/154?
  • https://localhost:9443/ccm/oslc/workitems/154?
  • https://localhost:9443/ccm/resource/itemName/
  • https://localhost:9443/ccm/resource/itemName/

Every request, I get a response:

<?xml version="1.0" encoding="UTF-8"?><oslc_cm:error xmlns:oslc_cm="">
<oslc_cm:message>Malformed XML: Premature end of file.</oslc_cm:message>

Can somebody tell me what is wrong?
Thank you!

2 answers

permanent link
Ralph Schoon (60.5k33643) | answered May 27 '14, 5:35 a.m.
edited May 27 '14, 5:36 a.m.
Please see: 

which leads to several hits. the first leads to and hopefully addresses your question.

Using a search engine and appending as a keyword leads to hits for these popular questions that have been answered already.

permanent link
Dmitry A. Lesin (23823587) | answered May 27 '14, 5:07 p.m.
It's a strange behavior of REST interface but I was able to change a state by a simple addition of request body like this one:

<?xml version="1.0" encoding="UTF-8"?><oslc_cm:ChangeRequest xmlns:oslc_cm="" rdf:about="https://localhost:9443/ccm/resource/itemName/" xmlns:dc="" xmlns:rdf="" xmlns:calm="" xmlns:rtc_cm="" xmlns:oslc_pl="">

But I suspect that it's made for changing work item's properties simultaneously with state transition if necessary!

Your answer

Register or to post your answer.