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

Creating new Requirement via OSLC POST fails

 Hello,


I've now successfully queried and and updated requirements through OSLC GET and PUT messages.

However, when I try to create a requirement via POST I get "(403) Forbidden" response.

Below follows the setup for the POST message:

Any ideas why I fail to create the requirement ?  

Headers:
   httpWebRequest.Headers.Add("OSLC-Core-Version", "2.0")
   httpWebRequest.Accept = "application/rdf+xml"
   httpWebRequest.ContentType = "application/rdf+xml"
   httpWebRequest.Method = "POST"
URL:
https://.../rm/requirementFactory?projectURL=https%3A%2F%2F...%2Frm%2Fprocess%2Fproject-areas%2F_u9BacHJ7EeuYaNFaR904Vg

Body:
<rdf:RDF
        xmlns:rm="http://www.ibm.com/xmlns/rdm/rdf/"
        xmlns:acp="http://jazz.net/ns/acp#"
        xmlns:rm_property="https://.../rm/types/"
        xmlns:oslc="http://open-services.net/ns/core#"
        xmlns:nav="http://jazz.net/ns/rm/navigation#"
        xmlns:oslc_rm="http://open-services.net/ns/rm#">
      <rdf:Description rdf:about="">                           
<oslc:instanceShape rdf:resource="https://.../rm/types/_EhdMTnJ8EeuYaNFaR904Vg"/                              
                <dcterms:title rdf:parseType="Literal">New Requirments xyz</dcterms:title>
</rdf:Description>
</rdf:RDF> 
   

0 votes


Accepted answer

Permanent link

 Problem solved, bad xml formatting.


Ralph Schoon selected this answer as the correct answer

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

Question asked: Apr 13 '21, 2:19 a.m.

Question was seen: 845 times

Last updated: Apr 13 '21, 7:49 a.m.

Confirmation Cancel Confirm