It's all about the answers!

Ask a question

Getting artifacts with DNG OSLC API


Dmitry A. Lesin (24825996) | asked Nov 17 '18, 1:44 p.m.
edited Nov 17 '18, 1:48 p.m.

 Hello!

I'm trying to discover services for Rational DOORS Next Generation v6.0.5 in the same way as I was doing that for RTC/RQM. But I have failed to get needed result. I have got rootservices, catalog and services XML file for "" project without a problem.
service.xml contains next:

<?xml version="1.0" encoding="UTF-8"?>
    <oslc_rm:links>
      <oslc_rm:LinkCreationServices>
        <oslc_rm:validatedByLinkFactory rdf:resource="https://win2012:9443/rm/links/oslc/validatedByLinks"/>
        <oslc_rm:implementedByLinkFactory rdf:resource="https://win2012: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>
        <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>
        <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: Links Builder Sample Project</dc:description>
    <dc:title xmlns:dc="http://purl.org/dc/terms/">Links Builder Sample Project</dc:title>
  </oslc_rm:ServiceDescriptor>

OSLC-Core-Version: 2.0
Accept: application/rdf+xml
But result is code 200 with message: "Javascript is either disabled or not available in your Browser"
I'm repeating similar way for RTC installed in the same CLM solution - it works properly so I don't have problems with connection to Jazz or REST client.
What is wrong?
Thanks!

Accepted answer


permanent link
Benjamin Röhl (1671324) | answered Nov 21 '18, 11:28 a.m.
You try to request the delegated UI of a DOORS NG project by a REST client, which makes no sense. Since the usage of delegated UIs is only intended for Web-Browser-like applications.

This particular delegated UI you are requesting needs JavaScript to be shown, which seems to be not available by your client application.
Dmitry A. Lesin selected this answer as the correct answer

Comments
Dmitry A. Lesin commented Nov 24 '18, 1:08 p.m.

I can pass discovery of services and do anything with RQM/RTC. I believe that this tells that I don't have a problem with JavaScript in my client. Or may be I'm wrong somewhere. But what is where I'm wrong?


Dmitry A. Lesin commented Nov 26 '18, 3:22 a.m. | edited Nov 26 '18, 3:28 a.m.
Hi Benjamin,
I believe you are right! As expected, the problem was on my side because I didn't request services.xml correctly. It seems, I was confusing pointing wrongly headers in HTTP request. It resulted in partially returned response where only delegated UI was placed. I have returned to old CURL, and it  works perfect. Resource "service.xml" contains necessary content that can be used for further work.

2 other answers



permanent link
Ralph Schoon (63.1k33646) | answered Nov 18 '18, 1:28 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
This error message ALWAYS indicates that you are not yet logged in.
You need to log in (form based). If you use a REST client, that is integrated in the client, login to the tool first. If you use a separate REST client, you need to do what is needed to log in (cookies, headers,...).

Comments
Dmitry A. Lesin commented Nov 24 '18, 12:56 p.m. | edited Nov 24 '18, 12:57 p.m.
I was thinking the same first after got this problem. Originally, this all looks similar to API for RQM/RTC. I'm working with Chrome and Postman with Postman Interceptor set to ON. Currently, I have another Chrome tab that is open and where I have logon to RM. And this error is displayed even after being logon in RM.
To be sure, I have reproduced similar steps for RTC installed with RM in the same CLM package, and it works without a problem.
It must be mentioned that I can not correctly discover RM services in turn:
1. get catalog
2. get services.xml
3. get some URI to work with my project area like RQM/RTC API
I'm stumbling in 3-d step because I see the very limited number of URIs (displayed in my question) without capabilities to get list of requirements, create requirements, and so on, in the way how it's described here, for example:
It seems that all docs and workshops for RDNG Server API live independently from the system, whose API was essentially updated in last versions.

permanent link
Jim Amsden (29337) | answered Nov 19 '18, 9:31 a.m.

 If you can read the service provide catalog, then you're credentials are OK for the server. However, it appears those credentials don't correspond to a user who is a member of the project area you are trying to access. 


Comments
Dmitry A. Lesin commented Nov 24 '18, 1:03 p.m.
 I'm developing some code in testing environment where I can do everything. The user is in JazzAdmins group, he's one of the administrators in the project area as well as he's a member of the project area with "Administrator" role with all permissions set on.


Ian Barnard commented Feb 05 '19, 4:52 a.m. | edited Feb 05 '19, 4:56 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Does the user have a license assigned for DOORS Next Generation? If not you'll have to assign one.

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.