It's all about the answers!

Ask a question

DOORS OSLC Services


Henkie Maritz (37512) | asked Jan 04 '16, 8:08 a.m.
I’m working through examples and these articles:
- https://jazz.net/library/article/1197
- http://www.ibm.com/developerworks/rational/library/oslc-services-rational-doors/

But it goes wrong here: Where I get all the services, according to the example I should be getting the following:
<oslc:CreationFactory>
<dcterms:title rdf:parseType="Literal">Requirement Creation Factory</dcterms:title>
<oslc:creation rdf:resource="https://grarrc.ibm.com:9443/rm/requirementFactory?projectURL=https://grarrc.ibm.com:9443/jts/process/project-areas/_zpWqELrZEeG3OKR6fZ1svQ" />
<oslc:resourceType rdf:resource="http://open-services.net/ns/rm#Requirement" />
<oslc:resourceShape rdf:resource="https://grarrc.ibm.com:9443/rm/types/_0Z8ZgrrZEeG3OKR6fZ1svQ" />
<oslc:resourceShape rdf:resource="https://grarrc.ibm.com:9443/rm/types/_0aWpMrrZEeG3OKR6fZ1svQ" />
<oslc:resourceShape rdf:resource="https://grarrc.ibm.com:9443/rm/types/_0cxEALrZEeG3OKR6fZ1svQ" />
<oslc:usage rdf:resource="http://open-services.net/ns/core#default" />
</oslc:CreationFactory>

Below is what I get. I should get a Query Capability and/or Creation Factory, But I only get Delegated UI dialog nodes: CollectionSelectionDialog, SelectionDialog.

I cannot find a place in DOORS where these services are enabled. What must I set up to get DOORS to expose these services as well.




https://jazzserver:9443/rm/oslc_rm/_aPM48BvhEeWSspTLOXWHOg/services.xml

<?xml version="1.0" encoding="UTF-8"?>
  <oslc_rm:ServiceDescriptor xmlns:oslc_rm="http://open-services.net/xmlns/rm/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" rdf:about="https://jazzserver:9443/rm/oslc_rm/_aPM48BvhEeWSspTLOXWHOg/services.xml">
    <oslc_rm:links>
      <oslc_rm:LinkCreationServices>
        <oslc_rm:validatedByLinkFactory rdf:resource="https://jazzserver:9443/rm/links/oslc/validatedByLinks"/>
        <oslc_rm:implementedByLinkFactory rdf:resource="https://jazzserver:9443/rm/links/oslc/implementedByLinks"/>
      </oslc_rm:LinkCreationServices>
    </oslc_rm:links>
    <oslc_rm:collections>
      <oslc_rm:CollectionSelectionDialog>
        <oslc_rm:heightHint>550px</oslc_rm:heightHint>
        <oslc_rm:widthHint>800px</oslc_rm:widthHint>
        <oslc_rm:widget rdf:resource="https://jazzserver:9443/rm/_ajax-modules/com.ibm.rdm.web.CollectionPicker?projectURL=https%3A%2F%2Fjazzserver%3A9443%2Frm%2Fprocess%2Fproject-areas%2F_aPM48BvhEeWSspTLOXWHOg"/>
        <dc:title xmlns:dc="http://purl.org/dc/terms/">Collection Selection</dc:title>
      </oslc_rm:CollectionSelectionDialog>
    </oslc_rm:collections>
    <oslc_rm:requirements>
      <oslc_rm:SelectionDialog>
        <oslc_rm:heightHint>550px</oslc_rm:heightHint>
        <oslc_rm:widthHint>800px</oslc_rm:widthHint>
        <oslc_rm:widget rdf:resource="https://jazzserver:9443/rm/_ajax-modules/com.ibm.rdm.web.RRCPicker?projectURL=https%3A%2F%2Fjazzserver%3A9443%2Frm%2Fprocess%2Fproject-areas%2F_aPM48BvhEeWSspTLOXWHOg"/>
        <dc:title xmlns:dc="http://purl.org/dc/terms/">Requirement Selection</dc:title>
      </oslc_rm:SelectionDialog>
    </oslc_rm:requirements>
    <dc:description xmlns:dc="http://purl.org/dc/terms/">Service Descriptor for Project: eNaTIS</dc:description>
    <dc:title xmlns:dc="http://purl.org/dc/terms/">eNaTIS</dc:title>
  </oslc_rm:ServiceDescriptor>

Thanks
Henkie

One answer



permanent link
Henkie Maritz (37512) | answered Jan 04 '16, 9:20 a.m.
I have found my mistake. The REST calls I used must include the following headers:

OSLC-Core-Version: 2.0

Accept: application/rdf+xml



Comments
Ginny Ghezzo commented Jan 05 '16, 2:11 p.m.
JAZZ DEVELOPER

Henkie, 

Thank you for posting the answer and the reminder on checking the headers! 
Ginny 

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.