It's all about the answers!

Ask a question

How to get creator and contributor on RTC 4.0.0.1 using OSLC?


Tomas Broka (122) | asked Nov 06 '12, 5:09 p.m.
 Hi, 

I'm trying to retrieve the creator and contributor values in RTC 4.0.0.1 using OSLC in java. The http response is coming back in an html format and not as xml format, only for these two fields. 
In RTC 3.x I'm able to get the values because the http response is comping back as xml format for all the fields. I know that in RTC 4.x the oslc format has changed for creator and contributor. Using REST client this is what I get:

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:j.0="http://xmlns.com/foaf/0.1/" xmlns:j.1="http://jazz.net/xmlns/prod/jazz/jfs/1.0/">
 <rdf:Description rdf:about="https://jazz-server:9443/jts/users/rtcadmin">
<j.1:archived rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">
false
</j.1:archived>
<j.0:nick>
rtcadmin
</j.0:nick>
<j.0:name>
RTC Admin
</j.0:name>
 </rdf:Description>
</rdf:RDF>

I made the changes on java code to parse "j.0:nick" value and it works correct if I parse it through a xml file. My only problem is getting the http response in html format. 
Can someone help me how to get the http response in xml format for creator and contributor ?

Thank you,

Tomas

Be the first one to answer this question!


Register or 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.