It's all about the answers!

Ask a question

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


1
1
Rahul Singh Bhadauriya (2811720) | asked Jul 18 '13, 9:57 a.m.
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

Accepted answer


permanent link
Chenyue Gao (913) | answered Jul 22 '13, 2:26 p.m.
JAZZ DEVELOPER
 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

Comments
Rahul Singh Bhadauriya commented Jul 25 '13, 5:03 a.m.

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

One other answer



permanent link
YajuvendraSingh PSL (5612) | answered Jul 25 '13, 9:26 a.m.
Hi Rahul
Could you please explain what exactly you have followed.

Your answer


Register or to post your answer.