It's all about the answers!

Ask a question

OSLC Query for RTC returns error


G C (499) | asked Jul 24 '23, 3:08 a.m.

 I am trying to use the below query but gets error message as " The requested URL was not found on this server."



Can anyone please let me know what is wrong with the query.

One answer



permanent link
Ralph Schoon (63.1k33646) | answered Jul 24 '23, 3:45 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 I would assume that the requested URL was not found on this server. This usually means that the URL is invalid. That can have various reasons.

Since the question is of such a low quality, avoiding to provide any useful information, there is no way to tell. How has the URL being obtained? This would usually be done in a discovery process. Which method was used? Headers sent? Consider 
How should I ask a question in the Forum if I want to receive useful answers? if you want to post here.

One detail I find suspicious is the context root /jazz/ this context root is usually only used by very old EWM servers, or during server extension development. 


Comments
G C commented Jul 24 '23, 4:37 a.m.

The base URL was fetched with the help of the below link


Instead of  https://localhost:9443" string i have replaced my server url
As suggested in the above link I had used below headers
Accept - application/rdf+xml
OSLC-Core-Version - 2.0


Ralph Schoon commented Jul 24 '23, 5:37 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Yea, as I thought the error message is absolutely correct. Instead of trying to skip all information start at the beginning, especially https://jazz.net/wiki/bin/view/Main/WorkItemAPIsForOSLCCM20#Discovery_Mechanism . The boldface data (at least) is specific to the system where the example was run. 

jazz/oslc/contexts/_ri93IEr1EemmCoWcAS2Uqw/workitems 

You have to discover the OSLC Query URI for your system using the discovery through the rootservices, the service provider and the query capability.
 


Ian Barnard commented Jul 24 '23, 7:41 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

See a walkthrough of discovery to find query capabilities here: https://jazz.net/forum/answer_link/266667/


Basically, the only URL you ever need to hardcode is the rootservices - after that use discovery, query etc. to find urls. Using hardcoded URLs is fragile across versions.


David Honey commented Jul 24 '23, 9:29 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Use rootservices to discover the OSLC Service Provider Catalog of interest.
Use OSLC discovery to find the query capability - see https://docs.oasis-open-projects.org/oslc-op/core/v3.0/os/discovery.html

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.