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

PUT Method is not working to Update the resources using OSLC Automation Adapter REST API 2.0 in RQM 4.0.1

Hi,
I am using OSLC REST API 2.0 for the Automation Command line Adapter.
I am able to send the GET method to retrieve the adapter resources.
I am also able to send a POST request to create some Adapter resources.
But i am not able to send a PUT request to update the Adapter resources to the RQM server .

I am getting the following error while sending a PUT request on the Adapter Execution Request URI.

Request URI: https://localhost:9443/qm/oslc_auto_test/contexts/_XuU7EtipEeKLqPNrxkUozA/resources/com.ibm.rqm.execution.ExecutionRequest
Request XML:
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:calm="http://jazz.net/xmlns/prod/jazz/calm/1.0/"
xmlns:rqm_auto="http://jazz.net/ns/auto/rqm#"
xmlns:rqm_qm="http://jazz.net/ns/qm/rqm#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:acp="http://jazz.net/ns/acp#"
xmlns:oslc="http://open-services.net/ns/core#"
xmlns:oslc_auto="http://open-services.net/ns/auto#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:oslc_qm="http://open-services.net/ns/qm#"
xmlns:bp="http://open-services.net/ns/basicProfile#">
 <oslc_auto:AutomationRequest rdf:about="https://localhost:9443/qm/oslc_auto_test/contexts/_XuU7EtipEeKLqPNrxkUozA/resources/com.ibm.rqm.execution.ExecutionRequest/_svRUsO-nEeKVoMEgZn1y1g">
 <rqm_auto:taken rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</rqm_auto:taken>
 </oslc_auto:AutomationRequest>
</rdf:RDF>

  1. Status Code: 405 Method Not Allowed
  2. Cache-Control: private
  3. Date: Thu, 18 Jul 2013 13:49:53 GMT
  4. Expires: Thu, 01 Jan 1970 05:30:00 IST
  5. OSLC-Core-Version: 2.0
  6. Server: Apache-Coyote/1.1
  7. Transfer-Encoding: chunked
Is PUT supported to update the server resources?
Any guidance regarding update the adapter resources in the RQM server using OSLC REST API 2.0  ??

Thanks
-Rahul

1

1 vote


Accepted answer

Permanent link
 Hi Rahul, thanks for your question. 
According to OSLC specification, the PUT method of automation request is optional. So it is possible that it is not supported in RQM. To find more information about available methods of automation resource, please go to Automation Service Provider HTTP method support.
Rahul Singh Bhadauriya selected this answer as the correct answer

0 votes

Comments

Hi Chenyue,
Thanks for your answer.
It really helps me a lot.


One other answer

Permanent link
Hi Rahul
Could you please explain what exactly you have followed.

0 votes


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
× 10,927
× 7,487
× 515
× 43

Question asked: Jul 18 '13, 9:57 a.m.

Question was seen: 9,810 times

Last updated: Jul 25 '13, 9:26 a.m.

Confirmation Cancel Confirm