What is XML parameter for OSLC queries?
2 answers
Try adding this Accept:application/xml in heder if you are using a REST client .
See http://open-services.net/bin/view/Main/CmRestApiV1?sortcol=table;up=#Media_Types_Used
Edit: What is the content of the html? is it about login? then you might need to login
Hi, Mike
In my test with RTC 4.0.4, I simply run via Firefox, it will still return XML instead of HTML.
What version of RTC do you use and what browser did you try? I remember that I did see the same issue before in Poster when login is not done properly(somehow I have to login to the server via browser first and then run the same commands in Posters.
The headers can be set to
Accept=application/xml
OSLC-Core-Version=2.0
in Poster (or other REST Client) to GET the XML response.
In my test with RTC 4.0.4, I simply run via Firefox, it will still return XML instead of HTML.
What version of RTC do you use and what browser did you try? I remember that I did see the same issue before in Poster when login is not done properly(somehow I have to login to the server via browser first and then run the same commands in Posters.
The headers can be set to
Accept=application/xml
OSLC-Core-Version=2.0
in Poster (or other REST Client) to GET the XML response.