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>
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
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>
- Status Code: 405 Method Not Allowed
- Cache-Control: private
- Date: Thu, 18 Jul 2013 13:49:53 GMT
- Expires: Thu, 01 Jan 1970 05:30:00 IST
- OSLC-Core-Version: 2.0
- Server: Apache-Coyote/1.1
- Transfer-Encoding: chunked
Any guidance regarding update the adapter resources in the RQM server using OSLC REST API 2.0 ??
Thanks
-Rahul
Accepted answer
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.