It's all about the answers!

Ask a question

Why isn't oslc:queryCapability in services.xml


Becky McDermott (921140) | asked Jul 25 '18, 3:28 p.m.

I am trying to follow some OSLC examples and learn how this framework works so that I can write some custom code to update links and attributes.

I am following some very basic things to get to the services.xml file:

1) https://jazz-qual.mydomain.gov/rm/rootservices

2) Use what is found in oslc_rm:rmServiceProviders to get the link to the catalog:  https://jazz-prod.mydomain.gov/rm/oslc_rm/catalog

3) Use the catalog to get the link to the services:  https://jazz-prod.mydomain.gov/rm/oslc_rm/_is19wjaFEeO8EPbPINYtfA/services.xml

4) Then when I view the services.xml, the content is limited.  There is no tag for oslc:queryCapability.  The tags I have in services.xml are:

<oslc_rm:LinkCreationServices>
<oslc_rm:CollectionSelectionDialog>
<oslc_rm:SelectionDialog>

and that is it.  I was expecting to have a URI for the query service.

I am running DNG version 6.0.3.  How can I access the query service?


Accepted answer


permanent link
Rosa Naranjo (2.9k11723) | answered Jul 25 '18, 4:42 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Hello
Are you using the required Headers?  OSLC-COre-Version=2.0 and Accept=application/xml or application/rdf+xml
Ralph Schoon selected this answer as the correct answer

Comments
Becky McDermott commented Jul 25 '18, 4:57 p.m.

That was the issue.  Once I added these to the header, I can now see many more services.

Thank you


Rosa Naranjo commented Jul 25 '18, 5:50 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Becky
Can you mark this answer as the accepted answer using the hyperlink?

Your answer


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.